From 1d92cb0e0a60f345798c03f72bbe09394cec4db9 Mon Sep 17 00:00:00 2001 From: "Paul A." Date: Wed, 1 Aug 2012 15:53:30 +0200 Subject: Check the player we are bringing has permission to enter the world vs the initiating user --- Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java index 880c4e362..3f650f96d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpohere.java @@ -31,7 +31,7 @@ public class Commandtpohere extends EssentialsCommand } 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())); } -- cgit v1.2.3