summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:53:30 +0200
committerPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:53:30 +0200
commit41a9f93ab6fbae5c5c06e5f99ecd90456d749d89 (patch)
treea1623170ccf86f67cbd97cfdcfdf18299cef6f7f
parent9060faa351153fba652dc7fbaf95a9d0e84fa9e9 (diff)
downloadEssentials-41a9f93ab6fbae5c5c06e5f99ecd90456d749d89.tar
Essentials-41a9f93ab6fbae5c5c06e5f99ecd90456d749d89.tar.gz
Essentials-41a9f93ab6fbae5c5c06e5f99ecd90456d749d89.tar.lz
Essentials-41a9f93ab6fbae5c5c06e5f99ecd90456d749d89.tar.xz
Essentials-41a9f93ab6fbae5c5c06e5f99ecd90456d749d89.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/Commandtpohere.java2
1 files changed, 1 insertions, 1 deletions
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()));
}