mirror of
https://github.com/taoneill/war.git
synced 2025-01-07 16:27:44 +01:00
Closes gh-226. Respawn now stops fire properly.
This commit is contained in:
parent
25e034965d
commit
f20b275ba9
@ -290,12 +290,10 @@ public class Warzone {
|
||||
this.handleRespawn(team, player);
|
||||
// Teleport the player back to spawn
|
||||
event.setTo(team.getTeamSpawn());
|
||||
// player.teleport(team.getTeamSpawn());
|
||||
}
|
||||
|
||||
private void handleRespawn(Team team, Player player) {
|
||||
// Fill hp
|
||||
player.setFireTicks(0);
|
||||
player.setRemainingAir(300);
|
||||
player.setHealth(20);
|
||||
|
||||
@ -817,10 +815,6 @@ public class Warzone {
|
||||
}
|
||||
}
|
||||
playerTeam.resetSign();
|
||||
Plugin heroicDeath = War.war.getServer().getPluginManager().getPlugin("HeroicDeath");
|
||||
if (heroicDeath != null) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,8 @@ public class LoadoutResetJob implements Runnable {
|
||||
|
||||
public void run() {
|
||||
this.zone.resetInventory(this.team, this.player);
|
||||
// Stop fire here, since doing it in the same tick as death doesn't extinguish it
|
||||
player.setFireTicks(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user