Add ranking, feast guards and i18n updates
Use Rank info in leaderboard display (adds playerrank, passes numeric score) and adjust message placeholders. Add prefix placeholder injection in LanguageManager. Introduce max-radius-teleport config and use it for player teleport on join. Restore broadcasting of player quit messages on disconnect. Enforce no-iron crafting before feast (deny craft, notify player & play sound) and cancel entity spawns until feast starts. Update config.yml with max-radius-teleport and refresh en_US language strings (add no_iron_before_feast and translate/update several GUI/perk entries).
This commit is contained in:
@@ -43,6 +43,7 @@ class GameManager(
|
||||
private val startBorder = plugin.config.getDouble("game.border-start", 300.0)
|
||||
private val endBorder = plugin.config.getDouble("game.border-end", 20.0)
|
||||
private val borderShrinkTime = plugin.config.getLong("game.border-shrink-time", 600)
|
||||
private val maxRadiusTeleport = plugin.config.getDouble("game.max-radius-teleport", 50.0)
|
||||
|
||||
val feastManager = FeastManager( plugin )
|
||||
val pitManager = PitManager( plugin )
|
||||
@@ -199,7 +200,7 @@ class GameManager(
|
||||
player.activePotionEffects.forEach { player.removePotionEffect( it.type ) }
|
||||
player.addPotionEffects(listOf( speedEffect, hasteEffect ))
|
||||
|
||||
teleportRandomly( player, world, startBorder / 2 )
|
||||
teleportRandomly( player, world, maxRadiusTeleport )
|
||||
|
||||
plugin.kitManager.applyKit( player ) // verteilt Items + ruft onAssign + passive.onActivate
|
||||
plugin.perkManager.applyPerks( player )
|
||||
|
||||
Reference in New Issue
Block a user