1
0
Fork 0

feat: some fixes here and there

This commit is contained in:
aro 2023-02-21 12:24:45 +01:00
parent 045f18bc52
commit 2a14483bf3
5 changed files with 29 additions and 20 deletions

View file

@ -5,7 +5,6 @@ import org.bukkit.ChatColor
import org.bukkit.GameMode
import org.bukkit.Material
import org.bukkit.inventory.ItemStack
import xyz.atnrch.dragon.GameState
import xyz.atnrch.dragon.RunnerDragon
import xyz.atnrch.dragon.teams.Team
import xyz.haoshoku.nick.api.NickAPI
@ -16,12 +15,10 @@ class DragonPlayer(uuid: UUID) {
val player = Bukkit.getPlayer(uuid)!!
fun instantiatePlayer() {
if (RunnerDragon.STATE == GameState.WAITING) {
RunnerDragon.instance.worldManager.teleportAtSpawn(player)
updateHeaderFooter()
impulse101()
setTeam(Team.DEFAULT_TEAM)
}
RunnerDragon.instance.worldManager.teleportAtSpawn(player) // really useful?
updateHeaderFooter()
impulse101()
setTeam(Team.DEFAULT_TEAM)
}
fun updateHeaderFooter() {