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

27 lines
631 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;
static LoadSaveProcess process;
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-22 03:10:31 +00:00
saveDefaultConfig();
getCommand("beginloadsave").setExecutor(start);
getCommand("stoploadsave").setExecutor(new StopCommand(plugin));
Cache.set();
2016-11-22 03:10:31 +00:00
}
}