mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-06 02:51:32 +01:00
Fix for null in PLAYER_TELEPORT for bukkit perms.
This commit is contained in:
parent
ecc56351ec
commit
8103e822ed
@ -14,3 +14,4 @@ v 1.1:
|
|||||||
- All GroupManager commands issued by players are now echoed in the console.
|
- All GroupManager commands issued by players are now echoed in the console.
|
||||||
- Reverted WorldHolder static change to maintain backward plugin compatibility.
|
- Reverted WorldHolder static change to maintain backward plugin compatibility.
|
||||||
- Update to handle 'getDescription().getPermissions(') returning a list (CB 1172).
|
- Update to handle 'getDescription().getPermissions(') returning a list (CB 1172).
|
||||||
|
- Fix for null in PLAYER_TELEPORT for bukkit perms.
|
@ -195,11 +195,9 @@ public class BukkitPermissions {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPlayerPortal(PlayerPortalEvent event) { // will portal into another world
|
public void onPlayerPortal(PlayerPortalEvent event) { // will portal into another world
|
||||||
if(event.getPlayer().getWorld().equals(event.getTo().getWorld())){ // only if world actually changed
|
if(!event.getFrom().getWorld().equals(event.getTo().getWorld())){ // only if world actually changed
|
||||||
return;
|
updatePermissions(event.getPlayer(), event.getTo().getWorld().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
updatePermissions(event.getPlayer(), event.getTo().getWorld().getName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user