diff options
author | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 15:55:04 +0200 |
---|---|---|
committer | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 15:55:04 +0200 |
commit | d5ed474be7b96da4336b8264778e8aeea458da97 (patch) | |
tree | 6ed804df4124f30e1a252f26277274ed19ed08c6 | |
parent | 1d92cb0e0a60f345798c03f72bbe09394cec4db9 (diff) | |
download | Essentials-d5ed474be7b96da4336b8264778e8aeea458da97.tar Essentials-d5ed474be7b96da4336b8264778e8aeea458da97.tar.gz Essentials-d5ed474be7b96da4336b8264778e8aeea458da97.tar.lz Essentials-d5ed474be7b96da4336b8264778e8aeea458da97.tar.xz Essentials-d5ed474be7b96da4336b8264778e8aeea458da97.zip |
Check the player we are bringing has permission to enter the world vs the initiating user part 4
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtp.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtp.java b/Essentials/src/com/earth2me/essentials/commands/Commandtp.java index d6d6b76f9..04220f3f2 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtp.java @@ -58,7 +58,7 @@ public class Commandtp extends EssentialsCommand throw new Exception(_("teleportDisabled", toPlayer.getDisplayName())); } if (target.getWorld() != toPlayer.getWorld() && ess.getSettings().isWorldTeleportPermissions() - && !user.isAuthorized("essentials.world." + toPlayer.getWorld().getName())) + && !player.isAuthorized("essentials.world." + toPlayer.getWorld().getName())) { throw new Exception(_("noPerm", "essentials.world." + toPlayer.getWorld().getName())); } |