summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:53:30 +0200
committerPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:53:30 +0200
commit1d92cb0e0a60f345798c03f72bbe09394cec4db9 (patch)
tree47414b63c9a72f35f2cefb574f86572e4fd43c62
parentab7a19b6e61af063c5f55cc7afdfb899ef047050 (diff)
downloadEssentials-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.java2
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()));
}