Reload economy & locale cfg cmds for devs

This commit is contained in:
Vortrex
2022-01-17 07:44:11 -06:00
parent 7daa66c907
commit 46ab29bdfd

View File

@@ -591,3 +591,18 @@ function resetAllServerAmbienceElementsCommand(command, params, client) {
}
// ===========================================================================
function reloadEconomyConfigurationCommand(command, params, client) {
getGlobalConfig().economy = loadEconomyConfig();
messageAdmins(`${client.name} {MAINCOLOUR}has reloaded the economy settings`);
}
// ===========================================================================
function reloadLocaleConfigurationCommand(command, params, client) {
getGlobalConfig().locales = loadLocaleConfig();
getServerData().localeStrings = loadAllLocaleStrings();
messageAdmins(`${client.name} {MAINCOLOUR}has reloaded the locale settings and texts`);
}
// ===========================================================================