Class CommandManager
java.lang.Object
net.playeranalytics.plan.commands.CommandManager
-
Constructor Summary
ConstructorDescriptionCommandManager
(com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, PlanFabric plugin) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
arguments
(Subcommand subcommand, com.mojang.brigadier.context.CommandContext<net.minecraft.server.command.ServerCommandSource> ctx, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static boolean
checkPermission
(net.minecraft.server.command.ServerCommandSource src, String permission) static boolean
void
registerChild
(Subcommand subcommand, com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.server.command.ServerCommandSource, ?> parent) void
registerRoot
(Subcommand subcommand, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
-
Constructor Details
-
CommandManager
public CommandManager(com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, PlanFabric plugin)
-
-
Method Details
-
checkPermission
public static boolean checkPermission(net.minecraft.server.command.ServerCommandSource src, String permission) -
isPermissionsApiAvailable
public static boolean isPermissionsApiAvailable() -
arguments
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> arguments(Subcommand subcommand, com.mojang.brigadier.context.CommandContext<net.minecraft.server.command.ServerCommandSource> ctx, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) -
registerRoot
public void registerRoot(Subcommand subcommand, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory) -
registerChild
public void registerChild(Subcommand subcommand, com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.server.command.ServerCommandSource, ?> parent)
-