Added basic serverside command logic (no commands yet)
This commit is contained in:
parent
358d01d730
commit
4c1f0f10a7
3 changed files with 58 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue