public class AnnoyingDependency
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
enableAfterDownload |
@NotNull java.lang.String |
name |
@NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> |
platforms |
boolean |
required |
| 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 |
|---|---|
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
@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 or not to attempt to enable the dependency after it has been downloadedpublic 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