Class Plugin

java.lang.Object
eu.sculkpowered.server.plugin.Plugin

public abstract class Plugin extends Object
Represents the main class of a plugin.
  • Constructor Details

    • Plugin

      public Plugin()
  • Method Details

    • server

      public final Server server()
      Gets the server instance.
      Returns:
      the server
      Since:
      1.0.0
    • description

      public final PluginDescription description()
      Gets the description of the plugin.
      Returns:
      the plugin's description
      Since:
      1.0.0
    • logger

      public ComponentLogger logger()
      Gets the ComponentLogger of the plugin.
      Returns:
      the plugin's logger
      Since:
      1.0.0
    • dataDirectory

      public Path dataDirectory()
      Gets the data directory of this plugin.
      Returns:
      the plugin's data directory
      Since:
      1.0.0
    • executorService

      public ExecutorService executorService()
      Gets the ExecutorService of this plugin.
      Returns:
      the plugin's executor service
      Since:
      1.0.0
    • hasExecutorService

      public boolean hasExecutorService()