Package eu.sculkpowered.server.plugin
Class Plugin
java.lang.Object
eu.sculkpowered.server.plugin.Plugin
Represents the main class of a plugin.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the data directory of this plugin.final PluginDescription
Gets the description of the plugin.Gets theExecutorService
of this plugin.boolean
logger()
Gets theComponentLogger
of the plugin.final Server
server()
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 theComponentLogger
of 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 theExecutorService
of this plugin.- Returns:
- the plugin's executor service
- Since:
- 1.0.0
-
hasExecutorService
public boolean hasExecutorService()
-