package pl.easyage.abbys; import org.bukkit.plugin.java.*; import org.bukkit.*; public class AbbysPlugin extends JavaPlugin { public AbbysTask task; public ForceCleanCommand forceCleanCommand; public OtchlanCommand otchlanCommand; public void onEnable() { this.saveDefaultConfig(); this.task = new AbbysTask(this); this.forceCleanCommand = new ForceCleanCommand(this); this.otchlanCommand = new OtchlanCommand(this); } public void onDisable() { this.task.cancel(); } public Location getAbbysLocation() { final String[] split = this.getConfig().getString("abbys-spawn").split(";"); return new Location(Bukkit.getWorld(split[0]), Integer.valueOf(split[1]) + 0.5, (double)Integer.valueOf(split[2]), Integer.valueOf(split[3]) + 0.5); } }