Package dev.jorel.commandapi
Class CommandAPIVelocityConfig
java.lang.Object
dev.jorel.commandapi.CommandAPIConfig<CommandAPIVelocityConfig>
dev.jorel.commandapi.CommandAPIVelocityConfig
- All Implemented Interfaces:
ChainableBuilder<CommandAPIVelocityConfig>
A class that contains information needed to configure the CommandAPI on Velocity-based servers.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandAPIVelocityConfig(com.velocitypowered.api.proxy.ProxyServer server, Object plugin) Creates a new CommandAPIVelocityConfig object. -
Method Summary
Modifier and TypeMethodDescriptioninstance()setNamespace(String namespace) Sets whether the CommandAPI should use the plugin's name as the default namespaceMethods inherited from class dev.jorel.commandapi.CommandAPIConfig
dispatcherFile, missingExecutorImplementationMessage, silentLogs, verboseOutput
-
Constructor Details
-
CommandAPIVelocityConfig
Creates a new CommandAPIVelocityConfig object. Variables in this constructor are required to load the CommandAPI on Velocity properly.- Parameters:
server- TheProxyServerthat the CommandAPI is running on.plugin- The plugin object (annotated byPlugin) loading the CommandAPI. This is used when registering events.
-
-
Method Details
-
usePluginNamespace
Sets whether the CommandAPI should use the plugin's name as the default namespaceIf called, any call to
CommandAPIConfig.setNamespace(String)will be ignored- Returns:
- this CommandAPIVelocityConfig
-
setNamespace
- Overrides:
setNamespacein classCommandAPIConfig<CommandAPIVelocityConfig>
-
instance
-