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.CWGroup;
|
||||||
import eu.endermite.commandwhitelist.common.ConfigCache;
|
import eu.endermite.commandwhitelist.common.ConfigCache;
|
||||||
import net.kyori.adventure.text.Component;
|
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.NamedTextColor;
|
||||||
import net.kyori.adventure.text.format.TextDecoration;
|
|
||||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
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) {
|
public static List<String> commandSuggestions(ConfigCache config, Collection<String> serverCommands, String[] args, boolean reloadPerm, boolean adminPerm) {
|
||||||
List<String> list = new ArrayList<>();
|
List<String> list = new ArrayList<>();
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
|
default:
|
||||||
case 0:
|
case 0:
|
||||||
case 1:
|
case 1:
|
||||||
if ("reload".startsWith(args[0]) && reloadPerm)
|
if ("reload".startsWith(args[0]) && reloadPerm)
|
||||||
|
|||||||
@@ -10,16 +10,22 @@ precisely what commands players can see and use.
|
|||||||

|

|
||||||
|
|
||||||
<h3>Plugin Features</h3>
|
<h3>Plugin Features</h3>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>You can lock certain commands behind permission
|
<li>Lock selected commands behind permission
|
||||||
<li>Overwrites default "no such command" message with your branding
|
<li>Overwrite default "no such command" message with your branding
|
||||||
<li>Blocks tab completion on spigot and bungeecord*</li>
|
<li>Block tab completion</li>
|
||||||
<li>Blocks command execution on spigot and bungeecord</li>
|
<li>Block command execution</li>
|
||||||
<li>Blocks completion and execution of specific subcommands (spigot only)</li>
|
<li>Block completion and execution of specified subcommands</li>
|
||||||
</ul>
|
</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>.
|
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