load bugfix
Fixed an error that occurred when loading the plugin, because since paper build 404 the T2CodeLib was loaded only after OPSecurity
This commit is contained in:
parent
a2bd88ac7c
commit
98fd0409fd
@ -32,6 +32,20 @@ public final class Main extends JavaPlugin {
|
|||||||
autor = this.getDescription().getAuthors();
|
autor = this.getDescription().getAuthors();
|
||||||
version = this.getDescription().getVersion();
|
version = this.getDescription().getVersion();
|
||||||
if (pluginNotFound("T2CodeLib", 96388, Util.getRequiredT2CodeLibVersion())) return;
|
if (pluginNotFound("T2CodeLib", 96388, Util.getRequiredT2CodeLibVersion())) return;
|
||||||
|
load();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
private static void load(){
|
||||||
|
if (!Bukkit.getPluginManager().getPlugin("T2CodeLib").isEnabled()){
|
||||||
|
Bukkit.getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
load();
|
||||||
|
}
|
||||||
|
},5L);
|
||||||
|
return;
|
||||||
|
}
|
||||||
t2codeLib = true;
|
t2codeLib = true;
|
||||||
Load.onLoad(plugin,autor,version);
|
Load.onLoad(plugin,autor,version);
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,10 @@ api-version: 1.13
|
|||||||
load: STARTUP
|
load: STARTUP
|
||||||
prefix: T2C-OPSecurity
|
prefix: T2C-OPSecurity
|
||||||
authors: [ JaTiTV ]
|
authors: [ JaTiTV ]
|
||||||
|
|
||||||
softdepend:
|
softdepend:
|
||||||
- T2CodeLib
|
- T2CodeLib
|
||||||
- OPSecurity
|
|
||||||
commands:
|
commands:
|
||||||
t2c-opsecurity:
|
t2c-opsecurity:
|
||||||
aliases: [opsec, opsecurity]
|
aliases: [opsec, opsecurity]
|
Loading…
Reference in New Issue
Block a user