Entire-World-Loader/src/iieLoadSaveEntireWorld/Main.java

29 lines
658 B
Java
Raw Normal View History

2016-11-22 03:10:31 +00:00
package iieLoadSaveEntireWorld;
import org.bukkit.configuration.file.FileConfiguration;
2016-11-22 03:10:31 +00:00
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;
public class Main extends JavaPlugin {
static Main plugin;
static FileConfiguration config;
static StartCommand start;
2016-11-23 23:46:52 +00:00
static StopCommand stop;
2016-11-22 03:10:31 +00:00
static BukkitTask task;
public void onEnable()
{
2016-11-22 03:10:31 +00:00
plugin = this;
config = plugin.getConfig();
start = new StartCommand(plugin);
2016-11-23 23:46:52 +00:00
stop = new StopCommand(plugin);
2016-11-22 03:10:31 +00:00
saveDefaultConfig();
getCommand("beginloadsave").setExecutor(start);
2016-11-23 23:46:52 +00:00
getCommand("stoploadsave").setExecutor(stop);
Cache.updateListUnfinished();
2016-11-22 03:10:31 +00:00
}
}