Still fire synccomplete for dead player syncs

feat/data-edit-commands 1.4.1
William 3 years ago
parent 649b7c0857
commit 8e5b794b6d

@ -181,6 +181,7 @@ public class PlayerSetter {
} }
// Don't sync the player if they are dead // Don't sync the player if they are dead
if (player.isDead() || player.getHealth() <= 0) { if (player.isDead() || player.getHealth() <= 0) {
Bukkit.getPluginManager().callEvent(new SyncCompleteEvent(player, data));
return; return;
} }
if (Settings.syncInventories) { if (Settings.syncInventories) {

Loading…
Cancel
Save