mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-11 22:16:57 +00:00
remove workflows, update readme, added missing default in switch
This commit is contained in:
@@ -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
|
||||
+1
-2
@@ -3,9 +3,7 @@ package eu.endermite.commandwhitelist.common.commands;
|
||||
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 class CWCommand {
|
||||
public static List<String> commandSuggestions(ConfigCache config, Collection<String> serverCommands, String[] args, boolean reloadPerm, boolean adminPerm) {
|
||||
List<String> list = new ArrayList<>();
|
||||
switch (args.length) {
|
||||
default:
|
||||
case 0:
|
||||
case 1:
|
||||
if ("reload".startsWith(args[0]) && reloadPerm)
|
||||
|
||||
@@ -10,16 +10,22 @@ precisely what commands players can see and use.
|
||||

|
||||
|
||||
<h3>Plugin Features</h3>
|
||||
|
||||
<ul>
|
||||
<li>You can lock certain commands behind permission
|
||||
<li>Overwrites default "no such command" message with your branding
|
||||
<li>Blocks tab completion on spigot and bungeecord*</li>
|
||||
<li>Blocks command execution on spigot and bungeecord</li>
|
||||
<li>Blocks completion and execution of specific subcommands (spigot only)</li>
|
||||
<li>Lock selected commands behind permission
|
||||
<li>Overwrite default "no such command" message with your branding
|
||||
<li>Block tab completion</li>
|
||||
<li>Block command execution</li>
|
||||
<li>Block completion and execution of specified subcommands</li>
|
||||
</ul>
|
||||
|
||||
\*This only works on Waterfall and its forks
|
||||
<b>Compatible versions</b>: 1.13+
|
||||
|
||||
<b>Compatible software</b>:
|
||||
- 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 <a href="https://github.com/YouHaveTrouble/CommandWhitelist/wiki">Plugin Wiki</a>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user