Interface CommandPack


public interface CommandPack
Plugin API.
  • 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

      void registerCustomGenerator(String name, ChunkGenerator chunkGenerator)
      Registration of the custom chunk generator.
      All registered generators will be available in the command `/world create`.
    • getCustomGenerator

      Optional<ChunkGenerator> getCustomGenerator(String name)
      Getting a custom chunk generator.
    • getAvailableGenerators

      Set<String> getAvailableGenerators()
      Get a Set 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 of PluginContainer on the server.
    • getModContainers

      Collection<ModContainer> getModContainers()
      Getting a collection of ModContainer on the server.
    • registerCommand

      void registerCommand(RawCommand command) throws IllegalStateException
      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

      void registerCommand(ParameterizedCommand command) throws IllegalStateException
      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