diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-09-24 02:47:01 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-09-24 02:47:01 +0100 |
commit | 8103e822ed54d8ade9fbacf06f8cd9220ee12a87 (patch) | |
tree | c2ee67b786b76d10b0d69cb98d6ff098e882fe9b /EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions | |
parent | ecc56351ec1a35f7260a881d056015be02c34664 (diff) | |
download | Essentials-8103e822ed54d8ade9fbacf06f8cd9220ee12a87.tar Essentials-8103e822ed54d8ade9fbacf06f8cd9220ee12a87.tar.gz Essentials-8103e822ed54d8ade9fbacf06f8cd9220ee12a87.tar.lz Essentials-8103e822ed54d8ade9fbacf06f8cd9220ee12a87.tar.xz Essentials-8103e822ed54d8ade9fbacf06f8cd9220ee12a87.zip |
Fix for null in PLAYER_TELEPORT for bukkit perms.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index ec6fcebca..cf3edafc0 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -195,11 +195,9 @@ public class BukkitPermissions { @Override
public void onPlayerPortal(PlayerPortalEvent event) { // will portal into another world
- if(event.getPlayer().getWorld().equals(event.getTo().getWorld())){ // only if world actually changed
- return;
+ if(!event.getFrom().getWorld().equals(event.getTo().getWorld())){ // only if world actually changed
+ updatePermissions(event.getPlayer(), event.getTo().getWorld().getName());
}
-
- updatePermissions(event.getPlayer(), event.getTo().getWorld().getName());
}
@Override
|