Class CommandManager

java.lang.Object
net.playeranalytics.plan.commands.CommandManager

public class CommandManager extends Object
  • 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)