diff --git a/.github/workflows/buildjar.yml b/.github/workflows/buildjar.yml deleted file mode 100644 index 915ddbf..0000000 --- a/.github/workflows/buildjar.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build CommandWhitelist Jar - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Checkout Git repo - uses: actions/checkout@v1 - - name: Restore Maven cache - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn package --file pom.xml - - name: Copy artifacts - uses: actions/upload-artifact@master - with: - name: CommandWhitelist - path: target/CommandWhitelist*.jar \ No newline at end of file diff --git a/CommandWhitelistCommon/src/main/java/eu/endermite/commandwhitelist/common/commands/CWCommand.java b/CommandWhitelistCommon/src/main/java/eu/endermite/commandwhitelist/common/commands/CWCommand.java index 5b448b3..adc6ab2 100644 --- a/CommandWhitelistCommon/src/main/java/eu/endermite/commandwhitelist/common/commands/CWCommand.java +++ b/CommandWhitelistCommon/src/main/java/eu/endermite/commandwhitelist/common/commands/CWCommand.java @@ -3,9 +3,7 @@ import eu.endermite.commandwhitelist.common.CWGroup; import eu.endermite.commandwhitelist.common.ConfigCache; import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.event.HoverEvent; import net.kyori.adventure.text.format.NamedTextColor; -import net.kyori.adventure.text.format.TextDecoration; import net.kyori.adventure.text.minimessage.MiniMessage; import java.util.ArrayList; @@ -55,6 +53,7 @@ public enum CommandType { public static List commandSuggestions(ConfigCache config, Collection serverCommands, String[] args, boolean reloadPerm, boolean adminPerm) { List list = new ArrayList<>(); switch (args.length) { + default: case 0: case 1: if ("reload".startsWith(args[0]) && reloadPerm) diff --git a/readme.md b/readme.md index 5f1cae8..f70f20b 100644 --- a/readme.md +++ b/readme.md @@ -10,16 +10,22 @@ precisely what commands players can see and use. ![bStats Servers](https://img.shields.io/bstats/servers/8704?label=Proxy%20servers%20using%20CW&style=flat-square)

Plugin Features

-
    -
  • You can lock certain commands behind permission -
  • Overwrites default "no such command" message with your branding -
  • Blocks tab completion on spigot and bungeecord*
  • -
  • Blocks command execution on spigot and bungeecord
  • -
  • Blocks completion and execution of specific subcommands (spigot only)
  • +
  • Lock selected commands behind permission +
  • Overwrite default "no such command" message with your branding +
  • Block tab completion
  • +
  • Block command execution
  • +
  • Block completion and execution of specified subcommands
-\*This only works on Waterfall and its forks +Compatible versions: 1.13+ + +Compatible software: +- Bukkit-based servers (Spigot, Paper, Airplane, Purpur, etc) +- Waterfall (NOT Bungeecord!) +- Velocity + +[Download latest release](https://github.com/YouHaveTrouble/CommandWhitelist/releases/latest) Having some issues? Make sure to check out Plugin Wiki.