summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:55:04 +0200
committerPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:55:04 +0200
commitd5ed474be7b96da4336b8264778e8aeea458da97 (patch)
tree6ed804df4124f30e1a252f26277274ed19ed08c6
parent1d92cb0e0a60f345798c03f72bbe09394cec4db9 (diff)
downloadEssentials-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.java2
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()));
}