summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:50:28 +0200
committerPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:50:28 +0200
commit7b94adfac8fc1e59cfebe2829ed787c3ef778eed (patch)
treea5ba585f8d0ad3bd03f6f4ef5a99704ac3f787ea
parent33d7776a8e27d271e81d753a5a2f8df00f9e5d81 (diff)
downloadEssentials-7b94adfac8fc1e59cfebe2829ed787c3ef778eed.tar
Essentials-7b94adfac8fc1e59cfebe2829ed787c3ef778eed.tar.gz
Essentials-7b94adfac8fc1e59cfebe2829ed787c3ef778eed.tar.lz
Essentials-7b94adfac8fc1e59cfebe2829ed787c3ef778eed.tar.xz
Essentials-7b94adfac8fc1e59cfebe2829ed787c3ef778eed.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/Commandtpahere.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java
index 9d389ecac..dba6bdb87 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java
@@ -26,7 +26,7 @@ public class Commandtpahere 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()));
}