From 2c0743b7e9a615609d936c95d93af57dd54fd5e4 Mon Sep 17 00:00:00 2001 From: manuelgu Date: Fri, 13 May 2016 19:04:55 +0200 Subject: [PATCH] Proper method name --- .../java/com/plotsquared/bukkit/listeners/PlayerEvents.java | 2 +- .../main/java/com/intellectualcrafters/plot/util/EventUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {