summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 94dd1765e..f855deb05 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1492,6 +1492,21 @@ impHandler0(createItems)
return true;
}
+impHandler(createItem)
+{
+ int id = 0;
+ int amount = 0;
+
+ if (!adminHandler)
+ return false;
+
+ if (parse2Int(event.args, id, amount))
+ adminHandler->createItems(id, ItemColor_one, amount);
+ else
+ adminHandler->createItems(atoi(event.args.c_str()), ItemColor_one, 1);
+ return true;
+}
+
impHandler(uploadConfig)
{
// TRANSLATORS: upload config chat message