public class AnnoyingDependency
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
enableAfterDownload
Whether to attempt to enable the dependency after it has been downloaded
|
@NotNull java.lang.String |
name
The name of the dependency (from it's
plugin.yml) |
@NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> |
platforms
The platforms the dependency can be downloaded from
|
boolean |
required
Whether the dependency is required to be installed
|
| Constructor and Description |
|---|
AnnoyingDependency(@NotNull java.lang.String name,
@NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> platforms,
boolean required,
boolean enableAfterDownload)
Creates a new dependency instance
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.io.File |
getFile()
Gets the new file of the dependency
|
boolean |
isNotInstalled()
This uses
Bukkit.getPluginManager() to check if the dependency isn't installed. |
@NotNull public final @NotNull java.lang.String name
plugin.yml)@NotNull public final @NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> platforms
public final boolean required
public final boolean enableAfterDownload
@Contract(pure=true)
public AnnoyingDependency(@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> platforms,
boolean required,
boolean enableAfterDownload)
name - the name of the dependency (from it's plugin.yml)platforms - the platforms the dependency can be downloaded fromrequired - whether the dependency is required to be installedenableAfterDownload - whether to attempt to enable the dependency after it has been downloaded@NotNull public @NotNull java.io.File getFile()
name.jar)public boolean isNotInstalled()
Bukkit.getPluginManager() to check if the dependency isn't installed. So it's vital that name is from the plugin's plugin.yml