Added basic serverside command logic (no commands yet)

This commit is contained in:
rainbow napkin 2024-12-08 08:55:49 -05:00
parent 358d01d730
commit 4c1f0f10a7
3 changed files with 58 additions and 3 deletions

View file

@ -26,10 +26,11 @@ class commandPreprocessor{
//If this is a local command
if(this.commandArray[0] == '/'){
//If the command exists
if(this.commandProcessor[this.argumentArray[0]] != null){
if(this.argumentArray != null && this.commandProcessor[this.argumentArray[0]] != null){
//Don't send it to the server
this.sendFlag = false;
//Call the command with the argument array
this.commandProcessor[this.argumentArray[0]](this.argumentArray);
}
}