diff options
author | Wushin <pasekei@gmail.com> | 2015-04-29 22:21:35 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-04-29 22:21:35 -0500 |
commit | bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c (patch) | |
tree | 7e192fa66bc0d544d353db9964e8688aebf3883b /src/map/atcommand.cpp | |
parent | 7da6873424307a6097a86772dd4994eccab041f3 (diff) | |
parent | 533cb165e0a9b4031f027c1ee193da52f962bdd2 (diff) | |
download | tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.tar.gz tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.tar.bz2 tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.tar.xz tmwa-bc5ae9b66a95ded0510ec4ac284d54b26d6dc14c.zip |
Merge pull request #62 from mekolat/gm-atcommand
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 9a35d30..cb5e2fb 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) { @@ -4995,9 +4976,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}}, |