-
Notifications
You must be signed in to change notification settings - Fork 0
Plugin API
JonathanxD edited this page Mar 1, 2017
·
4 revisions
Sandstone tries to provide a Sponge-Bukkit-like API, the Sandstone API is very similar to Sponge API and bit similar to Bukkit API.
Sandstone plugin class is very similar to Sponge plugin class. We use Google Guice to Inject dependencies in the code.
By default Sanstone provides following dependencies:
GamePlatformEventManagerPluginManagerServiceManager-
PluginContainer(of the plugin) -
PluginDefinition: (of the plugin) Changes in their values is reflected in thePluginContainer(only works during instance initialization). -
Logger(of the plugin) -
PluginContainerof others plugins, plugin id should be provided in@com.google.inject.name.Namedannotation.