forked from SteamWar/SteamWar
Fixes
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user