|
CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
Public Member Functions | |
| PaperImplementations (boolean isPaperPresent, boolean isFoliaPresent, NMS<?> nmsInstance) | |
| Constructs a PaperImplementations object. More... | |
| void | registerReloadHandler (Plugin plugin) |
Hooks into Paper's ServerResourcesReloadedEvent to detect if /minecraft:reload is called, and registers a reload handler that automatically calls the CommandAPI's internal datapack reloading function. More... | |
| CommandMap | getCommandMap () |
| boolean | isPaperPresent () |
| boolean | isPaperBrigAPI () |
| boolean | isFoliaPresent () |
| Class<? extends CommandSender > | getFeedbackForwardingCommandSender () |
| Class<? extends CommandSender > | getNullCommandSender () |
| WrapperCommandSyntaxException | getExceptionFromString (String message) |
Builds a WrapperCommandSyntaxException from a message with colour codes like ChatColor or using the § symbol. More... | |
| dev.jorel.commandapi.PaperImplementations.PaperImplementations | ( | boolean | isPaperPresent, |
| boolean | isFoliaPresent, | ||
| NMS<?> | nmsInstance | ||
| ) |
Constructs a PaperImplementations object.
| isPaperPresent | Whether this is a Paper server or not |
| isFoliaPresent | Whether this is a Folia server or not |
| nmsInstance | The instance of NMS |
| CommandMap dev.jorel.commandapi.PaperImplementations.getCommandMap | ( | ) |
CommandMap | WrapperCommandSyntaxException dev.jorel.commandapi.PaperImplementations.getExceptionFromString | ( | String | message | ) |
Builds a WrapperCommandSyntaxException from a message with colour codes like ChatColor or using the § symbol.
| message | the error message to be displayed |
WrapperCommandSyntaxException with the given message as error message | Class<? extends CommandSender > dev.jorel.commandapi.PaperImplementations.getFeedbackForwardingCommandSender | ( | ) |
io.papermc.paper.commands.FeedbackForwardingSender | Class<? extends CommandSender > dev.jorel.commandapi.PaperImplementations.getNullCommandSender | ( | ) |
io.papermc.paper.brigadier.NullCommandSender | boolean dev.jorel.commandapi.PaperImplementations.isFoliaPresent | ( | ) |
| boolean dev.jorel.commandapi.PaperImplementations.isPaperBrigAPI | ( | ) |
| boolean dev.jorel.commandapi.PaperImplementations.isPaperPresent | ( | ) |
| void dev.jorel.commandapi.PaperImplementations.registerReloadHandler | ( | Plugin | plugin | ) |
Hooks into Paper's ServerResourcesReloadedEvent to detect if /minecraft:reload is called, and registers a reload handler that automatically calls the CommandAPI's internal datapack reloading function.
| plugin | the plugin that the CommandAPI is being used from |