diff options
author | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 15:53:30 +0200 |
---|---|---|
committer | Paul A. <ementalodev@gmx.co.uk> | 2012-08-01 15:53:30 +0200 |
commit | 41a9f93ab6fbae5c5c06e5f99ecd90456d749d89 (patch) | |
tree | a1623170ccf86f67cbd97cfdcfdf18299cef6f7f | |
parent | 9060faa351153fba652dc7fbaf95a9d0e84fa9e9 (diff) | |
download | Essentials-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.java | 2 |
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())); } |