diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-20 13:26:49 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-20 13:26:49 +0000 |
commit | 6f3b475c721a3fc253662abd96014a825f801251 (patch) | |
tree | 26a66843be4e947091a6e06fe5cabb19c5ec073f /Essentials/src/com/earth2me/essentials/commands/Commandtpo.java | |
parent | fb2540cd26b395f05a8d95b3cdea1cdfd6be5698 (diff) | |
download | Essentials-6f3b475c721a3fc253662abd96014a825f801251.tar Essentials-6f3b475c721a3fc253662abd96014a825f801251.tar.gz Essentials-6f3b475c721a3fc253662abd96014a825f801251.tar.lz Essentials-6f3b475c721a3fc253662abd96014a825f801251.tar.xz Essentials-6f3b475c721a3fc253662abd96014a825f801251.zip |
Teleport check cleanup
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandtpo.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtpo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java index 5edbe274d..e30aee127 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java @@ -32,7 +32,7 @@ public class Commandtpo extends EssentialsCommand // Verify permission if (!player.isHidden() || user.isAuthorized("essentials.teleport.hidden")) { - if (user.getWorld() != player.getWorld() && ess.getSettings().getIsWorldTeleportPermissions() + if (user.getWorld() != player.getWorld() && ess.getSettings().isWorldTeleportPermissions() && !user.isAuthorized("essentials.world." + player.getWorld().getName())) { throw new Exception(_("noPerm", "essentials.world." + player.getWorld().getName())); |