Update api
This commit is contained in:
parent
54c07b7de9
commit
fa47a8a089
|
@ -17,6 +17,10 @@ public final class CrazyProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void register(final CrazyAuctions instance) {
|
static void register(final CrazyAuctions instance) {
|
||||||
|
if (get() != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CrazyProvider.instance = instance;
|
CrazyProvider.instance = instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,5 +1,6 @@
|
||||||
package com.ryderbelserion.crazyauctions;
|
package com.ryderbelserion.crazyauctions;
|
||||||
|
|
||||||
|
import com.ryderbelserion.cluster.ClusterPackage;
|
||||||
import com.ryderbelserion.crazyauctions.platform.PaperServer;
|
import com.ryderbelserion.crazyauctions.platform.PaperServer;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
@ -10,6 +11,8 @@ public class CrazyAuctionsPaper extends JavaPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
this.crazyAuctions = new CrazyAuctions(new PaperServer());
|
this.crazyAuctions = new CrazyAuctions(new PaperServer());
|
||||||
|
|
||||||
|
new ClusterPackage(this, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue