Package eu.sculkpowered.server.plugin
Class Plugin
java.lang.Object
eu.sculkpowered.server.plugin.Plugin
Represents the main class of a plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the data directory of this plugin.final PluginDescriptionGets the description of the plugin.Gets theExecutorServiceof this plugin.booleanlogger()Gets theComponentLoggerof the plugin.final Serverserver()Gets the server instance.
-
Constructor Details
-
Plugin
public Plugin()
-
-
Method Details
-
server
Gets the server instance.- Returns:
- the server
- Since:
- 1.0.0
-
description
Gets the description of the plugin.- Returns:
- the plugin's description
- Since:
- 1.0.0
-
logger
Gets theComponentLoggerof the plugin.- Returns:
- the plugin's logger
- Since:
- 1.0.0
-
dataDirectory
Gets the data directory of this plugin.- Returns:
- the plugin's data directory
- Since:
- 1.0.0
-
executorService
Gets theExecutorServiceof this plugin.- Returns:
- the plugin's executor service
- Since:
- 1.0.0
-
hasExecutorService
public boolean hasExecutorService()
-