This commit is contained in:
2024-11-23 15:43:05 +01:00
parent 7437f87d22
commit 97e4ccb076
8 changed files with 15 additions and 27 deletions
@@ -43,7 +43,7 @@ object IngameListener: Listener {
@EventHandler
fun onJoin(e: PlayerJoinEvent) {
SWScoreboard.createScoreboard(e.player, TNTLeagueScoreboard(e.player))
SWScoreboard.impl.createScoreboard(e.player, TNTLeagueScoreboard(e.player))
}
@EventHandler
@@ -57,7 +57,7 @@ object TNTLeagueGame {
state = GameState.RUNNING
plugin.server.onlinePlayers.forEach { SWScoreboard.createScoreboard(it, TNTLeagueScoreboard(it)) }
plugin.server.onlinePlayers.forEach { SWScoreboard.impl.createScoreboard(it, TNTLeagueScoreboard(it)) }
blueTeam.start()
redTeam.start()
@@ -101,7 +101,7 @@ object TNTLeagueGame {
plugin.server.onlinePlayers.forEach {
it.gameMode = GameMode.SPECTATOR
SWScoreboard.removeScoreboard(it)
SWScoreboard.impl.removeScoreboard(it)
it.playSound(Sound.sound(org.bukkit.Sound.ENTITY_ENDER_DRAGON_DEATH.key, Sound.Source.MASTER, 1f, 1f))
}