mirror of
https://github.com/CarmJos/MineSQL.git
synced 2024-09-19 20:25:45 +00:00
注册监听器
This commit is contained in:
parent
31b05229c3
commit
b09c593bc9
@ -5,6 +5,7 @@ import cc.carm.lib.easysql.manager.SQLManagerImpl;
|
||||
import cc.carm.plugin.easysql.api.EasySQLAPI;
|
||||
import cc.carm.plugin.easysql.api.EasySQLPluginPlatform;
|
||||
import cn.beecp.BeeDataSource;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
@ -48,6 +49,7 @@ public class EasySQLBukkit extends JavaPlugin implements EasySQLPluginPlatform,
|
||||
@Override
|
||||
public void onEnable() {
|
||||
setup(); // 在特定情况下 Bukkit 可能不会调用 onLoad 函数
|
||||
Bukkit.getPluginManager().registerEvents(this,this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user