Use cmd arg/param util

This commit is contained in:
Vortrex
2022-01-09 17:42:57 -06:00
parent b24a591046
commit 64b3628b25
17 changed files with 153 additions and 211 deletions

View File

@@ -59,8 +59,7 @@ function setNewCharacterMoneyCommand(command, params, client) {
return false;
}
let splitParams = params.split(" ");
let amount = toInteger(splitParams[0]) || 1000;
let amount = toInteger(getParam(params, " ", 1)) || 1000;
getServerConfig().newCharacter.cash = amount;
getServerConfig().needsSaved = true;