mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-01-09 08:28:30 +00:00
Proper method name
This commit is contained in:
parent
00340d5154
commit
2c0743b7e9
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue