mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Proper method name
This commit is contained in:
parent
00340d5154
commit
2c0743b7e9
@ -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)
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user