Use cmd arg/param util
This commit is contained in:
@@ -20,8 +20,7 @@ function playPlayerAnimationCommand(command, params, client) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let splitParams = params.split(" ");
|
||||
let animationSlot = getAnimationFromParams(splitParams[0]);
|
||||
let animationSlot = getAnimationFromParams(getParam(params, " ", 1));
|
||||
let animationPositionOffset = 1;
|
||||
|
||||
if(!animationSlot) {
|
||||
|
||||
Reference in New Issue
Block a user