Removed old code.
This commit is contained in:
parent
a8a96b7822
commit
48d6a61e06
@ -81,29 +81,4 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
}
|
||||
}
|
||||
// @EventHandler(priority = EventPriority.MONITOR)
|
||||
// public void onPlayerTeleportEvent(final PlayerTeleportEvent event) {
|
||||
// final Player player = event.getPlayer();
|
||||
// if (W.previewWorlds.contains(event.getFrom().getWorld().getName())) {
|
||||
// if (!event.getFrom().getWorld().getName()
|
||||
// .equals(event.getTo().getWorld().getName())) {
|
||||
// final String worldLoc = event.getFrom().getWorld().getName();
|
||||
// boolean unload = true;
|
||||
//
|
||||
// for (Player pl : Bukkit.getOnlinePlayers()) {
|
||||
// if (pl.getLocation().getWorld().getName().equals(worldLoc)) {
|
||||
// if (!pl.equals(player)) {
|
||||
// unload = false;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (unload) {
|
||||
// ArenaHandler ah = new ArenaHandler(this.plugin);
|
||||
// ah.unLoadArena(worldLoc, player);
|
||||
// W.previewWorlds.remove(worldLoc);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user