v1.1.0 deploy

This commit is contained in:
Carlos
2019-08-13 20:52:28 +02:00
parent 7f170f15b6
commit 5dfd026ca8
10 changed files with 234 additions and 94 deletions

View File

@ -1,5 +1,5 @@
/**
WebConsole Manager for WebConsole v1.0.0
WebConsole Manager for WebConsole
Used to manage active connections
https://github.com/mesacarlos
2019 Carlos Mesa under MIT License.
@ -70,4 +70,13 @@ class WebConsoleManager {
this.activeConnection.sendToServer("EXEC " + cmd);
}
/**
* Asks server for CPU, RAM and players info
*/
askForInfo(){
this.activeConnection.sendToServer("PLAYERS");
this.activeConnection.sendToServer("CPUUSAGE");
this.activeConnection.sendToServer("RAMUSAGE");
}
}