optimize MAXMC-T-2
This commit is contained in:
parent
1053fde43f
commit
7f4ef2a447
|
|
@ -5,6 +5,7 @@ import cc.maxmc.blastingcrisis.game.team
|
|||
import cc.maxmc.blastingcrisis.misc.Area
|
||||
import cc.maxmc.blastingcrisis.misc.GameManager
|
||||
import cc.maxmc.blastingcrisis.misc.debug
|
||||
import cc.maxmc.blastingcrisis.misc.toPlayerLocation
|
||||
import org.bukkit.Location
|
||||
import org.bukkit.event.block.BlockBreakEvent
|
||||
import org.bukkit.event.block.BlockPlaceEvent
|
||||
|
|
@ -67,6 +68,6 @@ object GameListener {
|
|||
@SubscribeEvent
|
||||
fun onRespawn(respawnEvent: PlayerRespawnEvent) {
|
||||
val team = respawnEvent.player.team ?: return // ignore none game player
|
||||
respawnEvent.respawnLocation = team.teamInfo.spawn
|
||||
respawnEvent.respawnLocation = team.teamInfo.spawn.toPlayerLocation()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue