Advertisement
Guest User

Untitled

a guest
Jun 5th, 2013
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.TheLazeboy.Staves;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.ChatColor;
  7. import org.bukkit.command.Command;
  8. import org.bukkit.command.CommandSender;
  9. import org.bukkit.entity.Player;
  10. import org.bukkit.plugin.PluginDescriptionFile;
  11. import org.bukkit.plugin.java.JavaPlugin;
  12.  
  13. public class Staves extends JavaPlugin{
  14.     public final Logger logger = Logger.getLogger("Minecraft");
  15.     public static Staves plugin;
  16.     public final MyPlayerListener mp = new MyPlayerListener(this);
  17.  
  18.    
  19.     @Override
  20.     public void onDisable() {
  21.         PluginDescriptionFile pdfFile = this.getDescription(); 
  22.         this.logger.info(pdfFile.getName() + " Has Been Disabled!");
  23.        
  24.     }
  25.  
  26.     @Override
  27.     public void onEnable() {
  28.         PluginDescriptionFile pdfFile = this.getDescription(); 
  29.         this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has Been Enabled!");
  30.         Bukkit.getPluginManager().registerEvents(MyPlayerListener, this);
  31.         Bukkit.getPluginManager().registerEvents((Listener) mp, this);
  32.    
  33.     }
  34.    
  35.     public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
  36.         if(commandLabel.equalsIgnoreCase("staves")){
  37.             Player player = (Player) sender;
  38.             player.sendMessage(ChatColor.GRAY + "Staves was made by TheLazeboy!");
  39.         }
  40.         return false;
  41.    
  42.  
  43.     }
  44. }
Advertisement
RAW Paste Data Copied
Advertisement