summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-08-01 16:04:13 +0200
committerPaul A. <ementalodev@gmx.co.uk>2012-08-01 16:04:13 +0200
commit079ed0d2da14fd2992d01cdf2f42f410a14fd533 (patch)
tree445c20f34aef807c5b5608c7fba01fa7379c7129
parentdcc53cbf30aa033f77b38aa81aad5cfb4b1d490c (diff)
downloadEssentials-079ed0d2da14fd2992d01cdf2f42f410a14fd533.tar
Essentials-079ed0d2da14fd2992d01cdf2f42f410a14fd533.tar.gz
Essentials-079ed0d2da14fd2992d01cdf2f42f410a14fd533.tar.lz
Essentials-079ed0d2da14fd2992d01cdf2f42f410a14fd533.tar.xz
Essentials-079ed0d2da14fd2992d01cdf2f42f410a14fd533.zip
Check the player we are bringing has permission to enter the world vs the initiating user the final frontier
-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 04220f3f2..c1d4347c6 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()
- && !player.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
+ && !target.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
{
throw new Exception(_("noPerm", "essentials.world." + toPlayer.getWorld().getName()));
}