public class BanCommand extends Object
| Modifier and Type | Field and Description |
|---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ALREADY_BANNED_EXCEPTION |
| Constructor and Description |
|---|
BanCommand() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
ban(ServerCommandSource source,
Collection<com.mojang.authlib.GameProfile> targets,
Text reason) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_BANNED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int ban(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets, @Nullable Text reason)