CommandAPI 12.1.0
An API for the command UI introduced in Minecraft 1.13
Loading...
Searching...
No Matches
dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > > Class Template Referenceabstract

A class that contains information needed to configure the CommandAPI on Bukkit-based servers. More...

Inheritance diagram for dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > >:

Public Member Functions

 CommandAPIBukkitConfig (String pluginName)
 Creates a new CommandAPIBukkitConfig object.
T fallbackToLatestNMS (boolean fallbackToLatestNMS)
 Sets whether the CommandAPI should fall back to the latest nms version if no implementation for the current version was found.
T addSkipSenderProxy (String... names)
T addSkipSenderProxy (List< String > names)
T setNamespace (String namespace)
 Sets the default namespace to use when register commands.
abstract T instance ()

Detailed Description

A class that contains information needed to configure the CommandAPI on Bukkit-based servers.

Constructor & Destructor Documentation

◆ CommandAPIBukkitConfig()

dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > >.CommandAPIBukkitConfig ( String pluginName)

Creates a new CommandAPIBukkitConfig object.

Variables in this constructor are required to load the CommandAPI on Bukkit properly.

Parameters
pluginNameThe name of the JavaPlugin that is loading the CommandAPI

Member Function Documentation

◆ fallbackToLatestNMS()

T dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > >.fallbackToLatestNMS ( boolean fallbackToLatestNMS)

Sets whether the CommandAPI should fall back to the latest nms version if no implementation for the current version was found.

Parameters
fallbackToLatestNMSwhether to fall back to the latest versions
Returns
this CommandAPIConfig

◆ setNamespace()

T dev.jorel.commandapi.CommandAPIBukkitConfig< T extends CommandAPIBukkitConfig< T > >.setNamespace ( String namespace)

Sets the default namespace to use when register commands.

This namespace can't be null or empty and has to match the regex: [0-9a-z_.-]+

Parameters
namespacethe namespace to use when register commands
Returns
this CommandAPIConfig