Interface IScalaPlugin
- All Superinterfaces:
CommandExecutor
,Plugin
,TabCompleter
,TabExecutor
- All Known Implementing Classes:
DescriptionPlugin
,ScalaPlugin
,ScalaPlugin
ScalaPlugin abstraction. Not meant to be implemented directly.
When you implement your own ScalaPlugin, please inherit from xyz.janboerman.scalaloader.plugin.ScalaPlugin. Alternatively, if your plugin is only meant to run on Paper, you can inherit from xyz.janboerman.scalaloader.paper.plugin.ScalaPlugin instead`.
-
Method Summary
Modifier and TypeMethodDescriptiondefault IScalaPluginClassLoader
Get theClassLoader
of this plugin.Get the configuration file of this ScalaPlugin.Get the version of Scala declared by this plugin.Get the Server's event bus.getName()
Get the name of the ScalaPlugin.Get the prefix of this plugin, used for logging.default ScalaRelease
Get the Scala Release cycle associated with this pluginGet the version of Scala used by this plugin.default IScalaPluginLoader
Get thePluginLoader
of this plugin.Methods inherited from interface org.bukkit.command.CommandExecutor
onCommand
Methods inherited from interface org.bukkit.plugin.Plugin
getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getPluginLoader, getResource, getServer, isEnabled, isNaggable, onDisable, onEnable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable
Methods inherited from interface org.bukkit.command.TabCompleter
onTabComplete
-
Method Details
-
getConfigFile
File getConfigFile()Get the configuration file of this ScalaPlugin.- Returns:
- the configuration file
-
getEventBus
EventBus getEventBus()Get the Server's event bus.- Returns:
- the event bus
-
getScalaVersion
String getScalaVersion()Get the version of Scala used by this plugin.- Returns:
- the scala version
-
getScalaRelease
Get the Scala Release cycle associated with this plugin- Returns:
- the scala release
-
getDeclaredScalaVersion
String getDeclaredScalaVersion()Get the version of Scala declared by this plugin.- Returns:
- the declared scala version
-
getName
String getName()Get the name of the ScalaPlugin. -
classLoader
Get theClassLoader
of this plugin.- Returns:
- the class loader
-
pluginLoader
Get thePluginLoader
of this plugin.- Returns:
- the plugin loader
-
getPrefix
String getPrefix()Get the prefix of this plugin, used for logging.- Returns:
- the prefix
-