mirror of
https://e.coding.net/circlecloud/EquipManager.git
synced 2024-12-04 12:38:48 +00:00
fix init error...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
9b10524794
commit
3ed2f3e82f
@ -5,6 +5,7 @@ import org.bukkit.plugin.PluginManager;
|
|||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import cn.citycraft.EquipManager.listen.PlayerListen;
|
import cn.citycraft.EquipManager.listen.PlayerListen;
|
||||||
|
import cn.citycraft.EquipManager.runnable.TaskManager;
|
||||||
import cn.citycraft.PluginHelper.config.FileConfig;
|
import cn.citycraft.PluginHelper.config.FileConfig;
|
||||||
|
|
||||||
public class EquipManager extends JavaPlugin {
|
public class EquipManager extends JavaPlugin {
|
||||||
@ -12,8 +13,6 @@ public class EquipManager extends JavaPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileConfiguration getConfig() {
|
public FileConfiguration getConfig() {
|
||||||
if (config == null)
|
|
||||||
config = new FileConfig(this);
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,6 +25,12 @@ public class EquipManager extends JavaPlugin {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
PluginManager pm = this.getServer().getPluginManager();
|
PluginManager pm = this.getServer().getPluginManager();
|
||||||
pm.registerEvents(new PlayerListen(), this);
|
pm.registerEvents(new PlayerListen(), this);
|
||||||
|
TaskManager.init(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoad() {
|
||||||
|
config = new FileConfig(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user