feat(Scripts/Commands): Item restoration command (#9538)

* Implement item restore command & move itemmove to new item cmd

* Implement LANG_COMMAND_DISABLED

* Prevent command usage if no config is set

* WIP: `.item restore list`

* Fix restore list & create base for restore item

* Send item to player via mail

* Put player as last argument

* Use Postmaster & fix restore list

* Show item name in restore list

* Update HandleItemMoveCommand to be using the api

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>

* Send item instantly if online
This commit is contained in:
Noxies 2021-12-09 03:57:15 +01:00 committed by GitHub
parent 8ae8db5283
commit c95c29838b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 226 additions and 35 deletions

View file

@ -54,6 +54,7 @@ void AddSC_titles_commandscript();
void AddSC_wp_commandscript();
void AddSC_player_commandscript();
void AddSC_cache_commandscript();
void AddSC_item_commandscript();
// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
@ -97,4 +98,5 @@ void AddCommandsScripts()
AddSC_wp_commandscript();
AddSC_player_commandscript();
AddSC_cache_commandscript();
AddSC_item_commandscript();
}