From ecddd21132c419d96847affbd6ce965c058eb9a8 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Sun, 30 Apr 2023 21:34:54 +0200 Subject: [PATCH] Removed ClassicProtocolCommands, Implemented ViaVersion commands --- .github/USAGE.md | 6 ++ README.md | 12 --- gradle.properties | 2 +- .../viafabricplus/ViaFabricPlus.java | 2 - .../command/ClassicProtocolCommands.java | 40 ---------- ...Command.java => ClassicViaSubCommand.java} | 20 ++--- .../c0_30/command/impl/HelpCommand.java | 45 ------------ .../command/impl/ListExtensionsCommand.java | 18 ++--- .../c0_30/command/impl/SetTimeCommand.java | 22 ++++-- .../protocolhack/ProtocolHack.java | 55 +++++++++++++- .../ViaFabricPlusVLBViaCommandHandler.java | 73 +++++++++++++++++++ .../ViaFabricPlusViaCommandSender.java | 53 ++++++++++++++ ...abricPlusClassicCustomCommandProvider.java | 54 -------------- 13 files changed, 215 insertions(+), 187 deletions(-) delete mode 100644 src/main/java/de/florianmichael/viafabricplus/definition/c0_30/command/ClassicProtocolCommands.java rename src/main/java/de/florianmichael/viafabricplus/definition/c0_30/command/{ICommand.java => ClassicViaSubCommand.java} (77%) delete mode 100644 src/main/java/de/florianmichael/viafabricplus/definition/c0_30/command/impl/HelpCommand.java create mode 100644 src/main/java/de/florianmichael/viafabricplus/protocolhack/command/ViaFabricPlusVLBViaCommandHandler.java create mode 100644 src/main/java/de/florianmichael/viafabricplus/protocolhack/command/ViaFabricPlusViaCommandSender.java delete mode 100644 src/main/java/de/florianmichael/viafabricplus/protocolhack/provider/vialegacy/ViaFabricPlusClassicCustomCommandProvider.java diff --git a/.github/USAGE.md b/.github/USAGE.md index 037829cb..3c64d18f 100644 --- a/.github/USAGE.md +++ b/.github/USAGE.md @@ -13,6 +13,12 @@ ViaFabricPlus will use the version set there, the versions are stored in the ser If you don't want to specify a specific version anymore, you can simply press the button and select **"Cancel and reset"**. +## Commands +You can use the ViaVersion commands with **/viafabricplus** or **/viaversion**, and a few classic only commands are also implemented: +- **/viafabricplus settime