Implemented Players, CpuUsage, RamUsage Commands. Updated README
This commit is contained in:
33
README.md
33
README.md
@ -2,7 +2,7 @@
|
||||
|
||||
# WebConsole
|
||||
|
||||
WebConsole is a Spigot plugin for Minecraft 1.14 that enables you to view your server console and manage your server from anywhere. It creates a WebSocket server in the background used by the web interface to send commands, receive your console log and manage your server.
|
||||
WebConsole is a Spigot plugin for Minecraft 1.8-1.14 that enables you to view your server console and manage your server from anywhere. It creates a WebSocket server in the background used by the web interface to send commands, receive your console log and manage your server.
|
||||
|
||||
Dont worry about privacy: all data is stored in your browser offline and your PC will connect directly to your minecraft server. No intermediary web servers, just you and your server.
|
||||
|
||||
@ -67,34 +67,5 @@ WebConsole does not support PEM certificates, so you will need to convert it to
|
||||
|
||||
## Technical information
|
||||
|
||||
### WebSocket commands
|
||||
You can find how client and server comunicate [here](https://github.com/mesacarlos/WebConsole/wiki/WebSocket-commands-and-responses)
|
||||
|
||||
The following tables represent how server communicates with the client(s), something like a language between them.
|
||||
|
||||
|
||||
#### Websocket Server -> Client
|
||||
|
||||
Server communicate with all connected clients using JSON. The following table shows all possible JSON variables.
|
||||
|
||||
| Variable |Meaning |
|
||||
|---------------------|-----------------------------------------------------------------------------|
|
||||
| status |Status code (as integer), representing response type. See listing below* |
|
||||
| statusDescription |Status description (as String) describing response type. |
|
||||
| respondsTo |`(Optional)` Original command sent by client which triggered this response|
|
||||
| message |Response content |
|
||||
|
||||
*Status codes are listed below:
|
||||
- **010**: Console output.
|
||||
- **200**: Ok/Processed.
|
||||
- **400**: Unknown command.
|
||||
- **401**: Login required/Not logged in.
|
||||
|
||||
|
||||
#### Client -> Websocket Server
|
||||
|
||||
Clients can communicate with server using commands. The following table shows existing commands.
|
||||
|
||||
| Code |Meaning |Extra info |
|
||||
|---------------------|-----------------------------------------|--------------|
|
||||
|LOGIN *(password)* |Login to start communication with server | |
|
||||
|EXEC *(command)* |Run desired command in Minecraft Server |Login required|
|
||||
|
Reference in New Issue
Block a user