summaryrefslogtreecommitdiff
path: root/npc/commands/super-menu.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-30 04:46:48 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-30 04:46:48 -0300
commit4741ca3c1f82b7c589a304bcda798c0970a02f95 (patch)
treeeb1e2e026c97a0826b7676c0ea0bec0ce5b87edc /npc/commands/super-menu.txt
parente61f12cd8365c3b0e1998110124b14ac59dfe1bd (diff)
downloadserverdata-4741ca3c1f82b7c589a304bcda798c0970a02f95.tar.gz
serverdata-4741ca3c1f82b7c589a304bcda798c0970a02f95.tar.bz2
serverdata-4741ca3c1f82b7c589a304bcda798c0970a02f95.tar.xz
serverdata-4741ca3c1f82b7c589a304bcda798c0970a02f95.zip
Allow GMs to de-auth themselves (@gmoff).
Log their login and logout. Test Server GM auth for Kolchak
Diffstat (limited to 'npc/commands/super-menu.txt')
-rw-r--r--npc/commands/super-menu.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index 40cf71141..08e7824e5 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -82,6 +82,9 @@ OnGM:
atcommand("#adjgroup demure 80");
} else if (strcharinfo(0) == "jak1") {
atcommand("#adjgroup jak1 80");
+ // Test Server grants
+ } else if (strcharinfo(0) == "Kolchak" && debug) {
+ atcommand("#adjgroup Kolchak 5");
//} else if (strcharinfo(0) == "Former_Cordo") {
// atcommand("#adjgroup 60 Former_Cordo");
} else {
@@ -89,14 +92,23 @@ OnGM:
.@auth=false;
}
// Handle authentication reports
- if (.@auth)
+ if (.@auth) {
announce strcharinfo(0)+" has just logged in services.", bc_all;
- else
+ logmes strcharinfo(0)+" : GM login.", LOGMES_ATCOMMAND;
+ } else {
logmes strcharinfo(0)+" : GM Authentication failed.", LOGMES_ATCOMMAND;
+ }
+ close;
+
+OnGMOff:
+ if (is_staff())
+ logmes strcharinfo(0)+" : GM logout.", LOGMES_ATCOMMAND;
+ atcommand("@adjgroup 0");
close;
OnInit:
bindatcmd "super", "@super::OnCall", 80, 99, 0;
+ bindatcmd "gmoff", "@super::OnGMOff", 5, 100, 1;
bindatcmd "gm", "@super::OnGM", 0, 100, 1;
// Special servers