Merge branch 'main' into TNTLeague/finish

This commit is contained in:
2024-11-24 22:13:01 +01:00
44 changed files with 2414 additions and 55 deletions

View File

@@ -61,7 +61,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

View File

@@ -76,7 +76,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()
@@ -120,7 +120,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))
}