2016-11-22 03:10:31 +00:00
|
|
|
package iieLoadSaveEntireWorld;
|
|
|
|
|
2016-11-23 21:34:35 +00:00
|
|
|
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;
|
2016-11-23 21:34:35 +00:00
|
|
|
static FileConfiguration config;
|
|
|
|
static StartCommand start;
|
|
|
|
static LoadSaveProcess process;
|
2016-11-22 03:10:31 +00:00
|
|
|
static BukkitTask task;
|
|
|
|
|
2016-11-23 21:34:35 +00:00
|
|
|
public void onEnable()
|
|
|
|
{
|
2016-11-22 03:10:31 +00:00
|
|
|
plugin = this;
|
2016-11-23 21:34:35 +00:00
|
|
|
config = plugin.getConfig();
|
|
|
|
start = new StartCommand(plugin);
|
|
|
|
|
2016-11-22 03:10:31 +00:00
|
|
|
saveDefaultConfig();
|
2016-11-23 21:34:35 +00:00
|
|
|
getCommand("beginloadsave").setExecutor(start);
|
|
|
|
getCommand("stoploadsave").setExecutor(new StopCommand(plugin));
|
|
|
|
Cache.set();
|
2016-11-22 03:10:31 +00:00
|
|
|
}
|
|
|
|
}
|