diff options
author | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 16:04:13 +0200 |
---|---|---|
committer | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 16:04:13 +0200 |
commit | a1ac58d17c72b0ba7547c816c3d818d114c5c856 (patch) | |
tree | 98e2282bb2f1930bf49648507a5cc670f589f1f7 | |
parent | 2fbdf7e4d6598bbd185d7d497e0ee8986a43c6ab (diff) | |
download | Essentials-a1ac58d17c72b0ba7547c816c3d818d114c5c856.tar Essentials-a1ac58d17c72b0ba7547c816c3d818d114c5c856.tar.gz Essentials-a1ac58d17c72b0ba7547c816c3d818d114c5c856.tar.lz Essentials-a1ac58d17c72b0ba7547c816c3d818d114c5c856.tar.xz Essentials-a1ac58d17c72b0ba7547c816c3d818d114c5c856.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.java | 2 |
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())); } |