summaryrefslogtreecommitdiff
path: root/npc/commands/super-menu.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-20 08:56:38 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-20 08:56:38 -0300
commitfa768d6b1301c8ed5806b36ea2671d8c672a572f (patch)
tree71489fd6cb8a7bc0ae8cd0f652231e103d70bb2f /npc/commands/super-menu.txt
parent45d0d0bcc1104d56304d6df15a0904d93e60bcb6 (diff)
downloadserverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.gz
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.bz2
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.xz
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.zip
Stop using getgmlevel() and use is_gm() is_admin() and is_staff().
Our four power levels: getgmlevel() → Sponsors, etc. is_staff() → GM 5, Developers, test server, etc. is_gm() → GM 80, Game Master, controls the world is_admin() → GM 99, Administrator, controls the uniserver (pun intended)
Diffstat (limited to 'npc/commands/super-menu.txt')
-rw-r--r--npc/commands/super-menu.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index 875111e38..98de5968d 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -1,7 +1,7 @@
function script SuperMenu {
do
{
- if (debug && !is_dev())
+ if (debug && !is_gm())
{
GlobalDebugMenu;
return;
@@ -15,8 +15,8 @@ function script SuperMenu {
next;
select
l("Scheduled broadcasts"),
- l("MOTD"),
- rif(is_evtc(), l("Event management")),
+ rif(is_admin(), l("MOTD")),
+ rif(is_gm(), l("Event management")),
l("Debug");
switch (@menu)
@@ -36,7 +36,7 @@ function script SuperMenu {
OnCall:
- if (!debug && !is_dev())
+ if (!debug && !is_gm())
{
dispbottom l("You do not have the required access privileges to use the Super Menu.");
end;
@@ -62,5 +62,5 @@ OnPCLoginEvent:
OnInit:
bindatcmd "super", "@super::OnCall", 80, 99, 0;
- bindatcmd "numa", "@super::OnCall", 80, 99, 0; // alias for those used to TMW's @numa
+ //bindatcmd "numa", "@super::OnCall", 80, 99, 0; // alias for those used to TMW's @numa - none at the moment, iirc
}