From 94a88314953ffaaf0b6189e5161b70d605d37069 Mon Sep 17 00:00:00 2001
From: Carlos <28845529+mesacarlos@users.noreply.github.com>
Date: Mon, 26 Aug 2019 14:52:31 +0200
Subject: [PATCH] Added parameter on 1000 response, added MC info cmd and more
changes
---
README.md | 4 +-
client/README_AFTER_UPGRADE.txt | 3 ++
client/index.html | 14 +++----
plugin.yml | 8 +++-
pom.xml | 2 +-
src/com/mesacarlos/webconsole/WebConsole.java | 12 ++++--
.../webconsole/command/PlayersCommand.java | 19 ---------
.../minecraft/WebConsoleCommand.java | 42 +++++++++++++++++++
.../mesacarlos/webconsole/util/LogFilter.java | 2 +-
.../webconsole/util/LoginManager.java | 7 +++-
.../{websockets => websocket}/WSServer.java | 16 +++----
.../command/CommandFactory.java | 2 +-
.../command/CpuUsageCommand.java | 6 +--
.../{ => websocket}/command/ExecCommand.java | 4 +-
.../{ => websocket}/command/LogInCommand.java | 8 ++--
.../websocket/command/PlayersCommand.java | 27 ++++++++++++
.../command/RamUsageCommand.java | 6 +--
.../{ => websocket}/command/WSCommand.java | 4 +-
.../response}/ConsoleOutput.java | 2 +-
.../response}/CpuUsage.java | 2 +-
.../response}/JSONOutput.java | 2 +-
.../response}/LoginRequired.java | 2 +-
.../{json => websocket/response}/Players.java | 10 ++++-
.../response}/Processed.java | 2 +-
.../response}/RamUsage.java | 2 +-
.../response}/UnknownCommand.java | 2 +-
26 files changed, 141 insertions(+), 69 deletions(-)
create mode 100644 client/README_AFTER_UPGRADE.txt
delete mode 100644 src/com/mesacarlos/webconsole/command/PlayersCommand.java
create mode 100644 src/com/mesacarlos/webconsole/minecraft/WebConsoleCommand.java
rename src/com/mesacarlos/webconsole/{websockets => websocket}/WSServer.java (84%)
rename src/com/mesacarlos/webconsole/{ => websocket}/command/CommandFactory.java (87%)
rename src/com/mesacarlos/webconsole/{ => websocket}/command/CpuUsageCommand.java (86%)
rename src/com/mesacarlos/webconsole/{ => websocket}/command/ExecCommand.java (84%)
rename src/com/mesacarlos/webconsole/{ => websocket}/command/LogInCommand.java (79%)
create mode 100644 src/com/mesacarlos/webconsole/websocket/command/PlayersCommand.java
rename src/com/mesacarlos/webconsole/{ => websocket}/command/RamUsageCommand.java (71%)
rename src/com/mesacarlos/webconsole/{ => websocket}/command/WSCommand.java (54%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/ConsoleOutput.java (87%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/CpuUsage.java (89%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/JSONOutput.java (85%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/LoginRequired.java (87%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/Players.java (72%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/Processed.java (90%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/RamUsage.java (90%)
rename src/com/mesacarlos/webconsole/{json => websocket/response}/UnknownCommand.java (90%)
diff --git a/README.md b/README.md
index 01d9c60..f5058db 100644
--- a/README.md
+++ b/README.md
@@ -11,9 +11,9 @@ Dont worry about privacy or security: all data is stored in your browser offline
* Command history: Use up/down arrow keys to browse the command history, like in the real console.
* Colors supported, for both Windows and Linux hosts. (Colors are represented different in each platform).
* Real-time connected players, machine CPU and server RAM usage information.
+* Capable of keep connected to more than one server to keep retrieving console log in the background for them.
* English, Spanish and Russian (thanks to Stashenko) supported.
-* Free and updated regularly.
-* And many more!
+* Free ,updated regularly, and many more!

diff --git a/client/README_AFTER_UPGRADE.txt b/client/README_AFTER_UPGRADE.txt
new file mode 100644
index 0000000..ec447d0
--- /dev/null
+++ b/client/README_AFTER_UPGRADE.txt
@@ -0,0 +1,3 @@
+If you are having issues with client not connecting and throwing random errors after a upgrade,
+please force client reload on your browser by pressing Ctrl+F5 to reload the whole page.
+This issue happens sometimes due to browsers caching JavaScript code.
\ No newline at end of file
diff --git a/client/index.html b/client/index.html
index 5277c14..d84868f 100644
--- a/client/index.html
+++ b/client/index.html
@@ -210,7 +210,7 @@
@@ -220,11 +220,11 @@
-
-
-
-
-
-
+
+
+
+
+
+