Package redempt.ordinate.spigot
Class SpigotCommandManager
java.lang.Object
redempt.ordinate.spigot.SpigotCommandManager
- All Implemented Interfaces:
redempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
public class SpigotCommandManager
extends Object
implements redempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
-
Constructor Summary
ModifierConstructorDescriptionprotected
SpigotCommandManager
(org.bukkit.plugin.Plugin plugin, String fallbackPrefix, redempt.ordinate.message.MessageProvider<org.bukkit.command.CommandSender> messages) -
Method Summary
Modifier and TypeMethodDescriptionredempt.ordinate.builder.BuilderOptions<org.bukkit.command.CommandSender>
redempt.ordinate.creation.ComponentFactory<org.bukkit.command.CommandSender>
static Properties
redempt.ordinate.help.HelpDisplayer<org.bukkit.command.CommandSender>
static SpigotCommandManager
getInstance
(org.bukkit.plugin.Plugin plugin) static SpigotCommandManager
getInstance
(org.bukkit.plugin.Plugin plugin, String fallbackPrefix) static SpigotCommandManager
getInstance
(org.bukkit.plugin.Plugin plugin, String fallbackPrefix, Properties messages) static SpigotCommandManager
getInstance
(org.bukkit.plugin.Plugin plugin, Properties messages) redempt.ordinate.message.MessageProvider<org.bukkit.command.CommandSender>
redempt.ordinate.parser.CommandParser<org.bukkit.command.CommandSender>
redempt.ordinate.dispatch.CommandRegistrar<org.bukkit.command.CommandSender>
loadMessages
(Path path) static <V> redempt.ordinate.context.ContextProvider<org.bukkit.command.CommandSender,
V> playerContext
(String name, String error, Function<org.bukkit.entity.Player, V> provider) setFallbackPrefix
(String fallbackPrefix)
-
Constructor Details
-
SpigotCommandManager
protected SpigotCommandManager(org.bukkit.plugin.Plugin plugin, String fallbackPrefix, redempt.ordinate.message.MessageProvider<org.bukkit.command.CommandSender> messages)
-
-
Method Details
-
getDefaultMessages
-
playerContext
-
getInstance
public static SpigotCommandManager getInstance(org.bukkit.plugin.Plugin plugin, String fallbackPrefix, Properties messages) -
getInstance
public static SpigotCommandManager getInstance(org.bukkit.plugin.Plugin plugin, String fallbackPrefix) -
getInstance
public static SpigotCommandManager getInstance(org.bukkit.plugin.Plugin plugin, Properties messages) -
getInstance
-
loadMessages
-
getMessages
public redempt.ordinate.message.MessageProvider<org.bukkit.command.CommandSender> getMessages() -
loadMessages
-
getRegistrar
public redempt.ordinate.dispatch.CommandRegistrar<org.bukkit.command.CommandSender> getRegistrar()- Specified by:
getRegistrar
in interfaceredempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
-
getHelpDisplayer
public redempt.ordinate.help.HelpDisplayer<org.bukkit.command.CommandSender> getHelpDisplayer()- Specified by:
getHelpDisplayer
in interfaceredempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
-
getComponentFactory
public redempt.ordinate.creation.ComponentFactory<org.bukkit.command.CommandSender> getComponentFactory()- Specified by:
getComponentFactory
in interfaceredempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
-
getBuilderOptions
public redempt.ordinate.builder.BuilderOptions<org.bukkit.command.CommandSender> getBuilderOptions() -
getParser
public redempt.ordinate.parser.CommandParser<org.bukkit.command.CommandSender> getParser()- Specified by:
getParser
in interfaceredempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
-
builder
- Specified by:
builder
in interfaceredempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
-
getCommandPrefix
- Specified by:
getCommandPrefix
in interfaceredempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender>
-
setFallbackPrefix
-
getFallbackPrefix
-