Guest User

EmptyBucket - EmptyBucket.java

a guest
Jan 31st, 2011
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.bukkit.pandemic.EmptyBucket;
  2.  
  3. import java.io.File;
  4.  
  5. import org.bukkit.Server;
  6. import org.bukkit.event.Event;
  7. import org.bukkit.plugin.PluginDescriptionFile;
  8. import org.bukkit.plugin.PluginLoader;
  9. import org.bukkit.plugin.PluginManager;
  10. import org.bukkit.plugin.java.JavaPlugin;
  11.  
  12. public class EmptyBucket extends JavaPlugin {
  13.  
  14.     public final EBPlayerListener playerListener = new EBPlayerListener(this);
  15.    
  16.     public EmptyBucket(PluginLoader pluginLoader, Server instance,
  17.             PluginDescriptionFile desc, File folder, File plugin,
  18.             ClassLoader cLoader) {
  19.         super(pluginLoader, instance, desc, folder, plugin, cLoader);
  20.     }
  21.  
  22.     @Override
  23.     public void onDisable() {
  24.         System.out.println("Disabling EmptyBucket");
  25.     }
  26.  
  27.     @Override
  28.     public void onEnable() {
  29.         System.out.println("Loading EmptyBucket");
  30.         PluginManager pm = getServer().getPluginManager();
  31.         pm.registerEvent(Event.Type.PLAYER_COMMAND, playerListener, Event.Priority.Normal, this);
  32.     }
  33.  
  34. }
RAW Paste Data