summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-02-14 13:01:39 +0000
committerElgarL <ElgarL@palmergames.com>2012-02-14 13:01:39 +0000
commit4a5c431163098bd64cfe227eeaf2bb12906c6840 (patch)
tree967465194d68ba17365cef4935c8996f08af48cc /EssentialsGroupManager/src/org
parentc0517c120369ac6a1de954c9d049bd0a88ff8ea6 (diff)
downloadEssentials-4a5c431163098bd64cfe227eeaf2bb12906c6840.tar
Essentials-4a5c431163098bd64cfe227eeaf2bb12906c6840.tar.gz
Essentials-4a5c431163098bd64cfe227eeaf2bb12906c6840.tar.lz
Essentials-4a5c431163098bd64cfe227eeaf2bb12906c6840.tar.xz
Essentials-4a5c431163098bd64cfe227eeaf2bb12906c6840.zip
Depreciate PlayerTeleportEvent as it's all handled in
PlayerChangedWorldEvent.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
index 1409f774d..053adc9ed 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
@@ -40,7 +40,6 @@ import org.bukkit.event.player.PlayerKickEvent;
import org.bukkit.event.player.PlayerPortalEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
-import org.bukkit.event.player.PlayerTeleportEvent;
import org.bukkit.event.server.PluginDisableEvent;
import org.bukkit.event.server.PluginEnableEvent;
import org.bukkit.permissions.Permission;
@@ -361,7 +360,7 @@ public class BukkitPermissions {
}
@EventHandler(priority = EventPriority.LOWEST)
- public void onPlayerChangeWorld(PlayerChangedWorldEvent event) { // will portal into another world
+ public void onPlayerChangeWorld(PlayerChangedWorldEvent event) { // has changed worlds
updatePermissions(event.getPlayer(), event.getPlayer().getWorld().getName());
}
@@ -378,13 +377,6 @@ public class BukkitPermissions {
}
@EventHandler(priority = EventPriority.LOWEST)
- public void onPlayerTeleport(PlayerTeleportEvent event) { // can be teleported into another world
- if ((event.getTo() != null) && (event.getPlayer() != null) && (!event.getFrom().getWorld().equals(event.getTo().getWorld()))) { // only if world actually changed
- updatePermissions(event.getPlayer(), event.getTo().getWorld().getName());
- }
- }
-
- @EventHandler(priority = EventPriority.LOWEST)
public void onPlayerQuit(PlayerQuitEvent event) {
if (!GroupManager.isLoaded())
return;