diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 21:52:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 21:52:25 +0300 |
commit | d601630f26cd1043f5f2467757093f54c6269158 (patch) | |
tree | 7f0a06605e252023ac731d90784c95068e7629a8 /src/actions/actions.cpp | |
parent | d88da4d367b40261889afd41779cd029587bacfa (diff) | |
download | plus-d601630f26cd1043f5f2467757093f54c6269158.tar.gz plus-d601630f26cd1043f5f2467757093f54c6269158.tar.bz2 plus-d601630f26cd1043f5f2467757093f54c6269158.tar.xz plus-d601630f26cd1043f5f2467757093f54c6269158.zip |
Add chat command for unprotect item.
New chat command: /unprotectitem ID
Alias: /itemunprotect ID
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index e4b2d9db5..e689db941 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1501,4 +1501,12 @@ impHandler(protectItem) return true; } +impHandler(unprotectItem) +{ + const int id = atoi(event.args.c_str()); + if (id > 0) + PlayerInfo::unprotectItem(id); + return true; +} + } // namespace Actions |