summaryrefslogtreecommitdiff
path: root/npc/functions/vault.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/vault.txt')
-rw-r--r--npc/functions/vault.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/vault.txt b/npc/functions/vault.txt
index 87ee50df..1cfe7c99 100644
--- a/npc/functions/vault.txt
+++ b/npc/functions/vault.txt
@@ -92,5 +92,7 @@ function script setvaultvar {
}
OnInit:
- "playerCache"::addVaultHandler("OnDualLogin");
+ if (SERVER_USES_VAULT) {
+ "playerCache"::addVaultHandler("OnDualLogin");
+ }
}