Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gmail.zfarley2123.op911;
- import java.util.logging.Logger;
- import net.minecraft.server.v1_4_R1.CommandOp;
- 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 OpMain extends JavaPlugin{
- public final Logger logger = Logger.getLogger("Minecraft");
- public static OpMain plugin;
- public void onEnable(){
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + "Enabled");
- }
- public void onDisable(){
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + "V." + pdfFile.getVersion() + "Disabled");
- //getConfig().options().copyDefaults(true);
- //saveConfig();
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandLable, String[] arges){
- Player player = (Player) sender;
- if(commandLable.equalsIgnoreCase("test")){
- player.sendMessage(ChatColor.BLUE + "Test!");
- }
- return false; }
- }
Advertisement
Add Comment
Please, Sign In to add comment