Package sawfowl.commandpack.api
Interface CommandPack
public interface CommandPack
Plugin API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Event for getting the plugin API. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.spongepowered.configurate.serialize.TypeSerializerCollection
-
Method Summary
Modifier and TypeMethodDescriptionGet aSet
of 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 ofModContainer
on the server.Collection<org.spongepowered.plugin.PluginContainer>
Getting a collection ofPluginContainer
on the server.Optional<sawfowl.commandpack.api.services.PunishmentService>
A system for punishing players.sawfowl.commandpack.api.tps.TPS
getTPS()
Getting information about server and worlds TPS.boolean
Whether the plugin is running on the server with Forge.Kits API.Viewing and changing player data.Interface for working with teleportation to random coordinates.void
registerCommand
(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.void
registerCommand
(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.void
registerCustomGenerator
(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 aSet
of 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 ofPluginContainer
on the server. -
getModContainers
Collection<ModContainer> getModContainers()Getting a collection ofModContainer
on 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
-