Skip to content

Instantly share code, notes, and snippets.

@aikar
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aikar/99a076b535009a1677af to your computer and use it in GitHub Desktop.
Save aikar/99a076b535009a1677af to your computer and use it in GitHub Desktop.
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