feat: some fixes here and there
This commit is contained in:
parent
045f18bc52
commit
2a14483bf3
5 changed files with 29 additions and 20 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue