Package sawfowl.commandpack.api
Interface CommandPack
public interface CommandPack
Plugin API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEvent for getting the plugin API. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.spongepowered.configurate.serialize.TypeSerializerCollection -
Method Summary
Modifier and TypeMethodDescriptionGet aSetof names of all registered custom chunk generators.getCustomGenerator(String name) Getting a custom chunk generator.Optional<sawfowl.commandpack.api.services.CPEconomyService>Economy Service.Getting a collection ofModContaineron the server.Collection<org.spongepowered.plugin.PluginContainer>Getting a collection ofPluginContaineron the server.Optional<sawfowl.commandpack.api.services.PunishmentService>A system for punishing players.sawfowl.commandpack.api.tps.TPSgetTPS()Getting information about server and worlds TPS.booleanWhether the plugin is running on the server with Forge.Kits API.Viewing and changing player data.Interface for working with teleportation to random coordinates.voidregisterCommand(ParameterizedCommand command) Registering a command at the final stage of server loading, when all in-game data is available.
The method will be available only when getting to CommandPack API.
Registration of commands using this method will be blocked after server loading is completed.voidregisterCommand(RawCommand command) Registering a command at the final stage of server loading, when all in-game data is available.
The method will be available only when getting to CommandPack API.
Registration of commands using this method will be blocked after server loading is completed.voidregisterCustomGenerator(String name, ChunkGenerator chunkGenerator) Registration of the custom chunk generator.
All registered generators will be available in the command `/world create`.
-
Field Details
-
COMMAND_SETTINGS_SERIALIZERS
static final org.spongepowered.configurate.serialize.TypeSerializerCollection COMMAND_SETTINGS_SERIALIZERS
-
-
Method Details
-
playersData
PlayersData playersData()Viewing and changing player data. -
randomTeleportService
RandomTeleportService randomTeleportService()Interface for working with teleportation to random coordinates. -
isForgeServer
boolean isForgeServer()Whether the plugin is running on the server with Forge. -
kitService
KitService kitService()Kits API. -
registerCustomGenerator
Registration of the custom chunk generator.
All registered generators will be available in the command `/world create`. -
getCustomGenerator
Getting a custom chunk generator. -
getAvailableGenerators
Get aSetof names of all registered custom chunk generators. -
getPunishmentService
Optional<sawfowl.commandpack.api.services.PunishmentService> getPunishmentService()A system for punishing players. -
getEconomyService
Optional<sawfowl.commandpack.api.services.CPEconomyService> getEconomyService()Economy Service. -
getTPS
sawfowl.commandpack.api.tps.TPS getTPS()Getting information about server and worlds TPS. -
getPluginContainers
Collection<org.spongepowered.plugin.PluginContainer> getPluginContainers()Getting a collection ofPluginContaineron the server. -
getModContainers
Collection<ModContainer> getModContainers()Getting a collection ofModContaineron the server. -
registerCommand
Registering a command at the final stage of server loading, when all in-game data is available.
The method will be available only when getting to CommandPack API.
Registration of commands using this method will be blocked after server loading is completed.- Throws:
IllegalStateException
-
registerCommand
Registering a command at the final stage of server loading, when all in-game data is available.
The method will be available only when getting to CommandPack API.
Registration of commands using this method will be blocked after server loading is completed.- Throws:
IllegalStateException
-