Class CommandManager

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

public class CommandManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommandManager​(com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, PlanFabric plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)