summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-03-20 13:26:49 +0000
committerKHobbits <rob@khobbits.co.uk>2012-03-20 13:26:49 +0000
commit6f3b475c721a3fc253662abd96014a825f801251 (patch)
tree26a66843be4e947091a6e06fe5cabb19c5ec073f /Essentials/src/com/earth2me/essentials/commands/Commandtpo.java
parentfb2540cd26b395f05a8d95b3cdea1cdfd6be5698 (diff)
downloadEssentials-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.java2
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()));