Class FabricCommandManager
java.lang.Object
net.playeranalytics.plan.commands.FabricCommandManager
-
Constructor Summary
ConstructorDescriptionFabricCommandManager
(com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, PlanFabric plugin, ErrorLogger errorLogger) -
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
-
FabricCommandManager
public FabricCommandManager(com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, PlanFabric plugin, ErrorLogger errorLogger)
-
-
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)
-