Proper method name

This commit is contained in:
manuelgu 2016-05-13 19:04:55 +02:00
parent 00340d5154
commit 2c0743b7e9
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ public class PlayerEvents extends PlotListener implements Listener {
public void playerRespawn(PlayerRespawnEvent event) { public void playerRespawn(PlayerRespawnEvent event) {
Player player = event.getPlayer(); Player player = event.getPlayer();
PlotPlayer pp = BukkitUtil.getPlayer(player); PlotPlayer pp = BukkitUtil.getPlayer(player);
EventUtil.manager.doDeathTask(pp); EventUtil.manager.doRespawnTask(pp);
} }
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)

View File

@ -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(); final Plot plot = pp.getCurrentPlot();
if (Settings.TELEPORT_ON_DEATH && plot != null) { if (Settings.TELEPORT_ON_DEATH && plot != null) {
TaskManager.runTask(new Runnable() { TaskManager.runTask(new Runnable() {