Guest User

Untitled

a guest
Dec 15th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.07 KB | None | 0 0
  1. package me.Legendpla.Plugin;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.ChatColor;
  6. import org.bukkit.command.Command;
  7. import org.bukkit.command.CommandSender;
  8. import org.bukkit.entity.Player;
  9. import org.bukkit.plugin.PluginDescriptionFile;
  10. import org.bukkit.plugin.java.JavaPlugin;
  11.  
  12. public class PluginMain extends JavaPlugin{
  13.    
  14.     public final Logger log = Logger.getLogger("Minecraft");
  15.     public static PluginMain plugin;
  16.    
  17.    
  18.     @Override
  19.     public void onDisable(){
  20.        
  21.         PluginDescriptionFile pdfFile = this.getDescription();
  22.         this.log.info(pdfFile.getName() + " is now Disabled!");
  23.     }
  24.    
  25.     @Override
  26.     public void onEnable(){
  27.        
  28.         PluginDescriptionFile pdfFile = this.getDescription();
  29.         this.log.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " is now Enabled!");
  30.     }
  31.    
  32.    
  33.     public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
  34.        
  35.         Player player = (Player) sender;
  36.         if(commandLabel.equalsIgnoreCase("sendme")){
  37.            
  38.             player.sendMessage(ChatColor.DARK_AQUA + "Sent");
  39.         }
  40.         return false;
  41.     }
  42. }
Add Comment
Please, Sign In to add comment