spenk

NoWeather

Feb 13th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1. import java.util.logging.Logger;
  2.  
  3. public class NoWeather extends Plugin
  4. {
  5.     public String name = "NoWeather";
  6.     public String version = "2.0";
  7.     public String author = " spenk";
  8.     public Logger log = Logger.getLogger("Minecraft");
  9.      
  10. public void initialize(){
  11.     NoWeatherListener listener = new NoWeatherListener();
  12. log.info(this.name +" version "+ this.version + " by " +this.author+(" is initialized!"));
  13. etc.getLoader().addListener(PluginLoader.Hook.WEATHER_CHANGE, listener, this, PluginListener.Priority.MEDIUM);
  14. etc.getLoader().addListener(PluginLoader.Hook.COMMAND, listener, this, PluginListener.Priority.MEDIUM);
  15. etc.getLoader().addCustomListener(new NoWeatherHook(listener));
  16. }
  17.  
  18. public void enable(){
  19.     log.info(this.name + " version " + this.version + " by " + this.author + " is enabled!");
  20. }
  21.  
  22. public void disable(){
  23.     log.info(this.name + " version " + this.version + " is disabled!");
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment