summaryrefslogtreecommitdiff
path: root/npc/commands/warp.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-26 03:04:23 -0300
committerJesusaves <cpntb1@ymail.com>2022-01-26 03:04:23 -0300
commit8e2758fec796d5e4e684f86bc1662f85222096c6 (patch)
tree762aaa2ce8789b7a75e565275b8958db6366205e /npc/commands/warp.txt
parentb5e3ca971ad667832780a0aa69f3bbd6c2ab7773 (diff)
downloadserverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.tar.gz
serverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.tar.bz2
serverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.tar.xz
serverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.zip
Fix some security issues and transfer some GM commands.
- @getvar against self is now GM 80 - @event wrapper is now GM 80 - @blessing is now GM 80 and can be used by others beside Jesusalva
Diffstat (limited to 'npc/commands/warp.txt')
-rw-r--r--npc/commands/warp.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/commands/warp.txt b/npc/commands/warp.txt
index adca7ab9f..4f98ac533 100644
--- a/npc/commands/warp.txt
+++ b/npc/commands/warp.txt
@@ -54,6 +54,10 @@ OnCall:
++.@e;
}
+ if (getmapflag(.@map$, mf_nowarpto) && !(is_admin() || $@GM_OVERRIDE)) {
+ dispbottom("This map is restricted and cannot be warped to.");
+ close;
+ }
cwarp .@map$, .@x, .@y; // XXX: maybe here use a slide_or_warp function
OnInit: