summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:52:55 +0200
committerPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:52:55 +0200
commitab7a19b6e61af063c5f55cc7afdfb899ef047050 (patch)
tree44699bdacd8432f431bfc5b2548ae83620de1dc5
parent7b94adfac8fc1e59cfebe2829ed787c3ef778eed (diff)
downloadEssentials-ab7a19b6e61af063c5f55cc7afdfb899ef047050.tar
Essentials-ab7a19b6e61af063c5f55cc7afdfb899ef047050.tar.gz
Essentials-ab7a19b6e61af063c5f55cc7afdfb899ef047050.tar.lz
Essentials-ab7a19b6e61af063c5f55cc7afdfb899ef047050.tar.xz
Essentials-ab7a19b6e61af063c5f55cc7afdfb899ef047050.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/Commandtphere.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtphere.java b/Essentials/src/com/earth2me/essentials/commands/Commandtphere.java
index 92eb87226..804176bd3 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtphere.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtphere.java
@@ -23,7 +23,7 @@ public class Commandtphere extends EssentialsCommand
throw new Exception(_("teleportDisabled", player.getDisplayName()));
}
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()));
}