Last active
August 29, 2015 14:21
-
-
Save aikar/99a076b535009a1677af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Empire/src/main/java/com/empireminecraft/features/EmpireVault.java b/Empire/src/main/java/com/empireminecraft/features/EmpireVault.java | |
index 47a0593..4c382aa 100644 | |
--- a/Empire/src/main/java/com/empireminecraft/features/EmpireVault.java | |
+++ b/Empire/src/main/java/com/empireminecraft/features/EmpireVault.java | |
@@ -57,7 +57,7 @@ public class EmpireVault { | |
sendMsg(player, "&cError, could not find user"); | |
return; | |
} | |
- if (!isTownWorld(player.getWorld()) && !player.hasPermission("empire.vaultglobal")) { | |
+ if (!Util.isTeleportableLocation(player) && !player.hasPermission("empire.vaultglobal")) { | |
sendMsg(player, "&cSorry, you can only open your vault in Town"); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment