mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Load the api to plugin
Former-commit-id: ced33f83225769b30907e93a7b3c847ec2bf5c59
This commit is contained in:
1 parent
0c020556b6
commit
9fda386b0a
2 files changed
+7
No files matched your search
@@ -35,6 +35,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.maxgamer.quickshop.api.QuickShopAPI;
|
||||
import org.maxgamer.quickshop.command.CommandManager;
|
||||
import org.maxgamer.quickshop.database.*;
|
||||
import org.maxgamer.quickshop.economy.*;
|
||||
@@ -471,6 +472,7 @@ public class QuickShop extends JavaPlugin {
|
||||
@Override
|
||||
public void onLoad() {
|
||||
instance = this;
|
||||
QuickShopAPI.setupApi(this);
|
||||
getDataFolder().mkdirs();
|
||||
replaceLogger();
|
||||
|
||||
|
||||
@@ -9,6 +9,11 @@ import org.maxgamer.quickshop.util.compatibility.CompatibilityManager;
|
||||
public class QuickShopAPI {
|
||||
private static QuickShop plugin;
|
||||
|
||||
/**
|
||||
* DO NOT CALL ME, IT JUST A INTERNAL METHOD, BUT BECAUSE CROSS-PACKAGE ACCESS, IT IS PUBLIC, SO DO NOT EXECUTE IT.
|
||||
* Go away =w=
|
||||
* @param qs The QuickShop plugin instance
|
||||
*/
|
||||
public static void setupApi(@NotNull QuickShop qs){
|
||||
plugin = qs;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user