diff options
author | mekolat <mekolat@gmail.com> | 2015-04-18 11:23:04 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2015-04-18 17:06:13 -0400 |
commit | 533cb165e0a9b4031f027c1ee193da52f962bdd2 (patch) | |
tree | 71f8060b5ffdc01bfc26624fae71ab0ea61bff02 /src/map/atcommand.cpp | |
parent | c776b7a5d8075ede4a364bfdd0c6fb3cb6f6c5fa (diff) | |
download | tmwa-533cb165e0a9b4031f027c1ee193da52f962bdd2.tar.gz tmwa-533cb165e0a9b4031f027c1ee193da52f962bdd2.tar.bz2 tmwa-533cb165e0a9b4031f027c1ee193da52f962bdd2.tar.xz tmwa-533cb165e0a9b4031f027c1ee193da52f962bdd2.zip |
remove @gm atcommand
Diffstat (limited to 'src/map/atcommand.cpp')
-rw-r--r-- | src/map/atcommand.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index cd51b70..ad810f5 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -1528,25 +1528,6 @@ ATCE atcommand_joblevelup(Session *s, dumb_ptr<map_session_data> sd, } static -ATCE atcommand_gm(Session *s, dumb_ptr<map_session_data> sd, - ZString message) -{ - if (!message) - return ATCE::USAGE; - - if (pc_isGM(sd)) - { - // a GM can not use this function. only a normal player (become gm is not for gm!) - clif_displaymessage(s, "You already have some GM powers."_s); - return ATCE::PERM; - } - else - chrif_changegm(sd->status_key.account_id, message); - - return ATCE::OKAY; -} - -static ATCE atcommand_pvpoff(Session *s, dumb_ptr<map_session_data> sd, ZString) { @@ -5017,9 +4998,6 @@ Map<XString, AtCommandInfo> atcommand_info = {"jlvl"_s, {"<delta>"_s, 60, atcommand_joblevelup, "Adjust your job level"_s}}, - {"gm"_s, {"<password>"_s, - 100, atcommand_gm, - "Receive GM powers"_s}}, {"pvpoff"_s, {""_s, 60, atcommand_pvpoff, "Enable PvP on your map"_s}}, |