forked from SteamWar/SteamWar
Merge branch 'main' into TNTLeague/BiggerCoins
This commit is contained in:
@@ -66,7 +66,7 @@ object GlobalListener: Listener {
|
||||
fun onPlayerMove(e: PlayerMoveEvent) {
|
||||
if (e.to.blockY < TNTLeagueWorldConfig.minHeight) {
|
||||
when (val team = TNTLeagueGame.getTeam(e.player)) {
|
||||
is TNTLeagueTeam -> e.player.teleport(team.config.spawnLocation)
|
||||
is TNTLeagueTeam -> e.player.teleport(team.config.worldConfig.spawnLocation)
|
||||
null -> e.player.teleport(TNTLeagueWorldConfig.blueTeam.spawnLocation)
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ object GlobalListener: Listener {
|
||||
@EventHandler
|
||||
fun onPlayerRespawn(e: PlayerRespawnEvent) {
|
||||
when (val team = TNTLeagueGame.getTeam(e.player)) {
|
||||
is TNTLeagueTeam -> e.respawnLocation = team.config.spawnLocation
|
||||
is TNTLeagueTeam -> e.respawnLocation = team.config.worldConfig.spawnLocation
|
||||
null -> e.respawnLocation = TNTLeagueWorldConfig.lobby
|
||||
}
|
||||
}
|
||||
@@ -100,7 +100,7 @@ object GlobalListener: Listener {
|
||||
|
||||
val fightTeam = TNTLeagueGame.getTeam(player)
|
||||
if (fightTeam != null) {
|
||||
message.broadcastPrefixless("PARTICIPANT_CHAT", SubMessage(fightTeam.name), player.name, msg)
|
||||
message.broadcastPrefixless("PARTICIPANT_CHAT", fightTeam.name, player.name, msg)
|
||||
} else {
|
||||
message.broadcastPrefixless("SPECTATOR_CHAT", player.name, msg)
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import de.steamwar.tntleague.game.TNTLeagueGame
|
||||
import org.bukkit.GameMode
|
||||
import org.bukkit.entity.EntityType
|
||||
import org.bukkit.event.EventHandler
|
||||
import org.bukkit.event.EventPriority
|
||||
import org.bukkit.event.Listener
|
||||
import org.bukkit.event.entity.EntityDamageEvent
|
||||
import org.bukkit.event.inventory.InventoryClickEvent
|
||||
|
||||
Reference in New Issue
Block a user