Class PaperCommandRegistry
java.lang.Object
com.gamersafer.minecraft.auth.common.commands.CommandRegistry
com.gamersafer.minecraft.auth.paper.command.PaperCommandRegistry
public class PaperCommandRegistry
extends com.gamersafer.minecraft.auth.common.commands.CommandRegistry
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.gamersafer.minecraft.auth.common.commands.CommandRegistry
api, commands, commandsAliases, config, core, loginHandlerFactory, onboardingService, permAdapter, playerStorage, profileService, reportLogManager, server
-
Constructor Summary
ConstructorDescriptionPaperCommandRegistry
(com.gamersafer.minecraft.auth.common.GSAuthPlugin core, org.bukkit.Server server, GSAuthPaper plugin, com.gamersafer.minecraft.auth.common.api.GSAuthApi api, com.gamersafer.minecraft.auth.common.handler.ILoginHandlerFactory loginHandlerFactory, com.gamersafer.minecraft.auth.common.abstraction.IServer iserver, com.gamersafer.minecraft.auth.common.onboarding.IOnboardingService onboardingService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
registerCommand
(com.gamersafer.minecraft.auth.common.commands.ICommand cmd) This function is a hack.Methods inherited from class com.gamersafer.minecraft.auth.common.commands.CommandRegistry
getCommands, registerCommands
-
Constructor Details
-
PaperCommandRegistry
public PaperCommandRegistry(com.gamersafer.minecraft.auth.common.GSAuthPlugin core, org.bukkit.Server server, GSAuthPaper plugin, com.gamersafer.minecraft.auth.common.api.GSAuthApi api, com.gamersafer.minecraft.auth.common.handler.ILoginHandlerFactory loginHandlerFactory, com.gamersafer.minecraft.auth.common.abstraction.IServer iserver, com.gamersafer.minecraft.auth.common.onboarding.IOnboardingService onboardingService)
-
-
Method Details
-
registerCommand
protected void registerCommand(com.gamersafer.minecraft.auth.common.commands.ICommand cmd) This function is a hack. Registering the normal way is not possible as we cannot force an override of already registered command aliases.- Specified by:
registerCommand
in classcom.gamersafer.minecraft.auth.common.commands.CommandRegistry
-