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 IScalaPluginClassLoaderGet theClassLoaderof 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 ScalaReleaseGet the Scala Release cycle associated with this pluginGet the version of Scala used by this plugin.default IScalaPluginLoaderGet thePluginLoaderof this plugin.Methods inherited from interface CommandExecutor
onCommandMethods inherited from interface Plugin
getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getPluginLoader, getResource, getServer, isEnabled, isNaggable, onDisable, onEnable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggableMethods inherited from interface TabCompleter
onTabComplete
-
Method Details
-
getConfigFile
File getConfigFile()Get the configuration file of this ScalaPlugin.- Returns:
- the configuration file
-
getEventBus
-
getScalaVersion
-
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
-
classLoader
Get theClassLoaderof this plugin.- Returns:
- the class loader
-
pluginLoader
Get thePluginLoaderof this plugin.- Returns:
- the plugin loader
-
getPrefix
-