Facebook
From Emerald Earthworm, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 437
  1. package pl.easyage.abbys;
  2.  
  3. import org.bukkit.plugin.java.*;
  4. import org.bukkit.*;
  5.  
  6. public class AbbysPlugin extends JavaPlugin
  7. {
  8.     public AbbysTask task;
  9.     public ForceCleanCommand forceCleanCommand;
  10.     public OtchlanCommand otchlanCommand;
  11.    
  12.     public void onEnable() {
  13.         this.saveDefaultConfig();
  14.         this.task = new AbbysTask(this);
  15.         this.forceCleanCommand = new ForceCleanCommand(this);
  16.         this.otchlanCommand = new OtchlanCommand(this);
  17.     }
  18.    
  19.     public void onDisable() {
  20.         this.task.cancel();
  21.     }
  22.    
  23.     public Location getAbbysLocation() {
  24.         final String[] split = this.getConfig().getString("abbys-spawn").split(";");
  25.         return new Location(Bukkit.getWorld(split[0]), Integer.valueOf(split[1]) + 0.5, (double)Integer.valueOf(split[2]), Integer.valueOf(split[3]) + 0.5);
  26.     }
  27. }
  28.