public class PluginOptions
extends xyz.srnyx.javautilities.parents.Stringable
| Modifier and Type | Field and Description |
|---|---|
@NotNull java.util.List<AnnoyingDependency> |
dependencies
OPTIONAL The AnnoyingDependencies to check for (add dependencies to this in the plugin's constructor) |
PluginPlatform.Multi |
updatePlatforms
RECOMMENDED The different platforms the plugin is available on |
| Constructor and Description |
|---|
PluginOptions()
Constructs a new
PluginOptions instance with default values |
| Modifier and Type | Method and Description |
|---|---|
@NotNull PluginOptions |
dependencies(AnnoyingDependency... dependencies)
Adds the specified
AnnoyingDependencys to dependencies |
@NotNull PluginOptions |
dependencies(@NotNull java.util.Collection<AnnoyingDependency> dependencies)
Adds the specified
AnnoyingDependencys to dependencies |
static @NotNull PluginOptions |
load(@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads the options from the specified
ConfigurationSection |
@NotNull PluginOptions |
updatePlatforms(@NotNull java.util.Collection<PluginPlatform> updatePlatforms)
Sets
updatePlatforms |
@NotNull PluginOptions |
updatePlatforms(PluginPlatform... updatePlatforms)
Sets
updatePlatforms |
@NotNull PluginOptions |
updatePlatforms(PluginPlatform.Multi updatePlatforms)
Sets
updatePlatforms |
@NotNull public @NotNull java.util.List<AnnoyingDependency> dependencies
OPTIONAL The AnnoyingDependencies to check for (add dependencies to this in the plugin's constructor)
If you add a dependency to this OUTSIDE the constructor, it will not be checked
This is NOT meant for optional dependencies, all of these dependencies will be downloaded/installed (even if AnnoyingDependency.required is false)
@NotNull public PluginPlatform.Multi updatePlatforms
RECOMMENDED The different platforms the plugin is available on
If not specified, the plugin will not be able to check for updates
public PluginOptions()
PluginOptions instance with default values@NotNull public static @NotNull PluginOptions load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
ConfigurationSectionsection - the section to load the options from@NotNull public @NotNull PluginOptions dependencies(@NotNull @NotNull java.util.Collection<AnnoyingDependency> dependencies)
AnnoyingDependencys to dependenciesdependencies - the dependencies to addPluginOptions instance for chaining@NotNull public @NotNull PluginOptions dependencies(@NotNull AnnoyingDependency... dependencies)
AnnoyingDependencys to dependenciesdependencies - the dependencies to addPluginOptions instance for chaining@NotNull public @NotNull PluginOptions updatePlatforms(@NotNull PluginPlatform.Multi updatePlatforms)
updatePlatformsupdatePlatforms - the new updatePlatformsPluginOptions instance for chaining@NotNull public @NotNull PluginOptions updatePlatforms(@NotNull @NotNull java.util.Collection<PluginPlatform> updatePlatforms)
updatePlatformsupdatePlatforms - the new updatePlatformsPluginOptions instance for chaining@NotNull public @NotNull PluginOptions updatePlatforms(@NotNull PluginPlatform... updatePlatforms)
updatePlatformsupdatePlatforms - the new updatePlatformsPluginOptions instance for chaining