diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index 100daaead..e5729b814 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -464,7 +464,7 @@ public class PlayerEvents extends PlotListener implements Listener { public void playerRespawn(PlayerRespawnEvent event) { Player player = event.getPlayer(); PlotPlayer pp = BukkitUtil.getPlayer(player); - EventUtil.manager.doDeathTask(pp); + EventUtil.manager.doRespawnTask(pp); } @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/util/EventUtil.java b/Core/src/main/java/com/intellectualcrafters/plot/util/EventUtil.java index 0efcbf848..0daac16ea 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/util/EventUtil.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/util/EventUtil.java @@ -79,7 +79,7 @@ public abstract class EventUtil { } } - public void doDeathTask(final PlotPlayer pp) { + public void doRespawnTask(final PlotPlayer pp) { final Plot plot = pp.getCurrentPlot(); if (Settings.TELEPORT_ON_DEATH && plot != null) { TaskManager.runTask(new Runnable() {