Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.Legendpla.Plugin;
- import java.util.logging.Logger;
- import org.bukkit.ChatColor;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.java.JavaPlugin;
- public class PluginMain extends JavaPlugin{
- public final Logger log = Logger.getLogger("Minecraft");
- public static PluginMain plugin;
- @Override
- public void onDisable(){
- PluginDescriptionFile pdfFile = this.getDescription();
- this.log.info(pdfFile.getName() + " is now Disabled!");
- }
- @Override
- public void onEnable(){
- PluginDescriptionFile pdfFile = this.getDescription();
- this.log.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " is now Enabled!");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
- Player player = (Player) sender;
- if(commandLabel.equalsIgnoreCase("sendme")){
- player.sendMessage(ChatColor.DARK_AQUA + "Sent");
- }
- return false;
- }
- }
Add Comment
Please, Sign In to add comment