1
0
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:
502647092 2015-09-21 20:35:33 +08:00
parent 9b10524794
commit 3ed2f3e82f

View File

@ -5,6 +5,7 @@ import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import cn.citycraft.EquipManager.listen.PlayerListen;
import cn.citycraft.EquipManager.runnable.TaskManager;
import cn.citycraft.PluginHelper.config.FileConfig;
public class EquipManager extends JavaPlugin {
@ -12,8 +13,6 @@ public class EquipManager extends JavaPlugin {
@Override
public FileConfiguration getConfig() {
if (config == null)
config = new FileConfig(this);
return config;
}
@ -26,6 +25,12 @@ public class EquipManager extends JavaPlugin {
public void onEnable() {
PluginManager pm = this.getServer().getPluginManager();
pm.registerEvents(new PlayerListen(), this);
TaskManager.init(this);
}
@Override
public void onLoad() {
config = new FileConfig(this);
}
}