Class CommandManager
java.lang.Object
com.hypixel.hytale.server.core.command.system.CommandManager
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, AbstractCommand> private static CommandManagerprivate static final com.hypixel.hytale.logger.HytaleLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandManagerget()getName()handleCommand(CommandSender commandSender, String commandString) handleCommand(PlayerRef playerRef, String command) handleCommands(CommandSender sender, Deque<String> commands) private CompletableFuture<Void> handleCommands0(CommandSender sender, Deque<String> commands) private static booleanisInternalException(Throwable throwable) register(AbstractCommand command) voidvoidregisterSystemCommand(AbstractCommand command) private voidrunCommand(CommandSender commandSender, String commandInput, AbstractCommand abstractCommand, CompletableFuture<Void> future) voidshutdown()
-
Field Details
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
instance
-
commandRegistration
-
aliases
-
-
Constructor Details
-
CommandManager
public CommandManager()
-
-
Method Details
-
get
-
shutdown
public void shutdown() -
getCommandRegistration
-
registerCommands
public void registerCommands() -
createVirtualPermissionGroups
-
registerSystemCommand
-
register
-
handleCommand
@Nonnull public CompletableFuture<Void> handleCommand(@Nonnull PlayerRef playerRef, @Nonnull String command) -
handleCommand
@Nonnull public CompletableFuture<Void> handleCommand(@Nonnull CommandSender commandSender, @Nonnull String commandString) -
runCommand
private void runCommand(@Nonnull CommandSender commandSender, @Nonnull String commandInput, @Nonnull AbstractCommand abstractCommand, @Nonnull CompletableFuture<Void> future) -
isInternalException
-
handleCommands
@Nonnull public CompletableFuture<Void> handleCommands(@Nonnull CommandSender sender, @Nonnull Deque<String> commands) -
handleCommands0
@Nonnull private CompletableFuture<Void> handleCommands0(@Nonnull CommandSender sender, @Nonnull Deque<String> commands) -
getName
- Specified by:
getNamein interfaceCommandOwner
-