Skip to content

Commit

Permalink
Update WhitelistCommand.java
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Jan 22, 2024
1 parent 31f527b commit 327ff15
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.velocitypowered.api.command.BrigadierCommand;
import com.velocitypowered.api.command.CommandManager;
import com.velocitypowered.api.command.CommandSource;
import me.monkey_cat.velocityct.VelocityWhitelistMeta;
import me.monkey_cat.velocityct.utils.Context;
import me.monkey_cat.velocityct.utils.MainCategory;
import net.kyori.adventure.text.Component;
Expand Down Expand Up @@ -63,6 +64,7 @@ public static CompletableFuture<Suggestions> suggestMatching(Iterable<String> su

public void register(CommandManager commandManager) {
var root = literal("whitelistct")
.requires(s -> s.hasPermission(VelocityWhitelistMeta.ID + ".command"))
.executes(this::showPluginInfo)
.then(literal("groups")
.then(literal("list").executes(this::showGroups)
Expand Down

0 comments on commit 327ff15

Please sign in to comment.