mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-09 17:57:43 +01:00
Fix applying respawn inventory after time went out; resolves #392
This commit is contained in:
parent
6194b7ac54
commit
e2456f360b
@ -70,8 +70,9 @@ public class TimeIsRunningTask extends BukkitRunnable {
|
||||
|
||||
if (!dPlayerKickEvent.isCancelled()) {
|
||||
MessageUtil.broadcastMessage(DMessage.PLAYER_TIME_KICK.getMessage(player.getName()));
|
||||
boolean keepInventory = Game.getByDGroup(dGroup).getRules().getKeepInventoryOnEscape();
|
||||
dPlayer.leave();
|
||||
if (Game.getByDGroup(dGroup).getRules().getKeepInventoryOnEscape()) {
|
||||
if (keepInventory) {
|
||||
dPlayer.applyRespawnInventory();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user