Deprecated API
Contents
-
Deprecated ClassesClassDescriptionthis event will not be called on Paper servers. Use regular
PluginDisableEvent
instead.It is impractical to maintain this event. For instance, it is *not* called on Paper servers on reloads. Use regularPluginEnableEvent
instead.
-
Deprecated MethodsMethodDescriptionThis method is only used by deprecated methods, and thus is no longer needed. Should you need equivalent functionality, then use the following snippet:
if (Bukkit.isPrimaryThread()) { runnable.run(); } else { Bukkit.getScheduler().runTask(scalaLoader, runnable); }
internal use only.Starting from Scala 3, the runtime is larger than just a standard and reflection library. UseScalaVersion.getUrls()
instead.Starting from Scala 3, the runtime is larger than just a standard and reflection library. UseScalaVersion.getUrls()
instead.This method *WILL NOT EXIST* at runtime when running your plugin on Paper. UseScalaPlugin.classLoader()
instead.useScalaPlugin.pluginLoader()
instead.use libraries instead. The only reason this method still exist is that that method does not support user-defined repositories yet.JavaPlugins that try to find classes using the JavaPluginLoader expect to only find JavaPlugins.JavaPlugins that try to find classes using the JavaPluginLoader expect to only find JavaPluginsinternal use onlyinternal use onlyinternal use onlyinternal use onlyinternal use onlyinternal use onlyUseScalaPluginLoader.openUpToJavaPlugin(ScalaPlugin, JavaPlugin)
instead. This method used to inject classes from the ScalaPlugin into the 'global' JavaPluginLoader scope, so that JavaPlugins could find classes from the ScalaPlugin. But since it no longer does that, it has no use to call this method anymore. This method will be removed in a future version!useIScalaLoader.getEventBus()
instead.
-
Deprecated ConstructorsConstructorDescriptionnot meant to be constructed explicitly. Use
IScalaPlugin.getEventBus()
orIScalaLoader.getEventBus()
.since Scala 3 there are more artifacts than just the scala standard library and the scala reflection library
-
Deprecated Enum ConstantsEnum ConstantDescriptionprovided for those who wish to use it, but the Scala 2.11 series has been unsupported for a while now.