Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.logging.Logger;
- public class NoWeather extends Plugin
- {
- public String name = "NoWeather";
- public String version = "2.0";
- public String author = " spenk";
- public Logger log = Logger.getLogger("Minecraft");
- public void initialize(){
- NoWeatherListener listener = new NoWeatherListener();
- log.info(this.name +" version "+ this.version + " by " +this.author+(" is initialized!"));
- etc.getLoader().addListener(PluginLoader.Hook.WEATHER_CHANGE, listener, this, PluginListener.Priority.MEDIUM);
- etc.getLoader().addListener(PluginLoader.Hook.COMMAND, listener, this, PluginListener.Priority.MEDIUM);
- etc.getLoader().addCustomListener(new NoWeatherHook(listener));
- }
- public void enable(){
- log.info(this.name + " version " + this.version + " by " + this.author + " is enabled!");
- }
- public void disable(){
- log.info(this.name + " version " + this.version + " is disabled!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment