diff --git a/data/talkactions/scripts/server_save.lua b/data/talkactions/scripts/server_save.lua new file mode 100644 index 00000000..ce6741a8 --- /dev/null +++ b/data/talkactions/scripts/server_save.lua @@ -0,0 +1,13 @@ +function onSay(player, words, param) + if not player:getGroup():getAccess() then + return true + end + + if player:getAccountType() < ACCOUNT_TYPE_GOD then + return false + end + + saveData() + player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Server Saved.") + return false +end diff --git a/data/talkactions/talkactions.xml b/data/talkactions/talkactions.xml index 760dcb65..1661abb7 100644 --- a/data/talkactions/talkactions.xml +++ b/data/talkactions/talkactions.xml @@ -1,6 +1,7 @@ +