diff options
author | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 15:53:30 +0200 |
---|---|---|
committer | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 15:53:30 +0200 |
commit | 1d92cb0e0a60f345798c03f72bbe09394cec4db9 (patch) | |
tree | 47414b63c9a72f35f2cefb574f86572e4fd43c62 | |
parent | ab7a19b6e61af063c5f55cc7afdfb899ef047050 (diff) | |
download | Essentials-1d92cb0e0a60f345798c03f72bbe09394cec4db9.tar Essentials-1d92cb0e0a60f345798c03f72bbe09394cec4db9.tar.gz Essentials-1d92cb0e0a60f345798c03f72bbe09394cec4db9.tar.lz Essentials-1d92cb0e0a60f345798c03f72bbe09394cec4db9.tar.xz Essentials-1d92cb0e0a60f345798c03f72bbe09394cec4db9.zip |
Check the player we are bringing has permission to enter the world vs the initiating user
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java index 880c4e362..3f650f96d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java @@ -31,7 +31,7 @@ public class Commandtpohere extends EssentialsCommand } if (user.getWorld() != player.getWorld() && ess.getSettings().isWorldTeleportPermissions() - && !user.isAuthorized("essentials.world." + user.getWorld().getName())) + && !player.isAuthorized("essentials.world." + user.getWorld().getName())) { throw new Exception(_("noPerm", "essentials.world." + user.getWorld().getName())); } |