summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:56:58 +0200
committerPaul A. <ementalodev@gmx.co.uk>2012-08-01 15:56:58 +0200
commit519f8a7f88aa65a2d4e168c09470be67025b8ade (patch)
tree7bd18ba4a1a0193871d0b0521129e889bd847973
parentd85049439a0cb1f333dcd82cb4bcd4f0a04f0694 (diff)
downloadEssentials-519f8a7f88aa65a2d4e168c09470be67025b8ade.tar
Essentials-519f8a7f88aa65a2d4e168c09470be67025b8ade.tar.gz
Essentials-519f8a7f88aa65a2d4e168c09470be67025b8ade.tar.lz
Essentials-519f8a7f88aa65a2d4e168c09470be67025b8ade.tar.xz
Essentials-519f8a7f88aa65a2d4e168c09470be67025b8ade.zip
re: re: 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/Commandtpall.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpall.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpall.java
index 6335a4a54..98e232609 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtpall.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpall.java
@@ -43,7 +43,7 @@ public class Commandtpall extends EssentialsCommand
continue;
}
if (user.getWorld() != player.getWorld() && ess.getSettings().isWorldTeleportPermissions()
- && !user.isAuthorized("essentials.world." + user.getWorld().getName()))
+ && !player.isAuthorized("essentials.world." + user.getWorld().getName()))
{
continue;
}