package me.buildcarter8.iBukkit;

import java.util.logging.Logger;
import me.buildcarter8.iBukkit.utils.Messages;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

//Recommended for: CraftBukkit 1.8.* Can be used for: Spigot 1.8.6
public class Main extends JavaPlugin
{
	public static final String iBukkitVersion = "3";
	public static final String buildNumber = "0";
	public static final String SpigotVersion = "1.8.6" + "1.8.7";
	public static final String spigot = "Spigot-1.8.6+";
	public static final String pluginfile = "plugin.yml";
	public final Logger log = Logger.getLogger("Minecraft-Server");
	public static Main plugin;
	@Override
	public void onDisable() {
	log.info(" iBukkit Features Have Been Disabled!");
	}
    @Override
    public void onLoad() {
    	log.info("Loading iBukkit...");
    	log.info("Created by buildcarter8...");
    	log.info("Loading iBukkit Utils...");
    
    }
    @Override
    public void onEnable() {
    	log.info("iBukkit Features are now usable!");
    }
    //TODO: Code it better
    public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
		 Player player = (Player) sender;
		 if(cmd.getName().equalsIgnoreCase("ibukkit"))
		 {
			 sender.sendMessage(ChatColor.AQUA + "iBukkit -- Version " + iBukkitVersion + "." + buildNumber);
			 sender.sendMessage(ChatColor.AQUA + "iBukkit was designed to help the average developer and make it easier for him/her");
		 }
		return true;
		 
    }
		 
}

@@ -59,16 +59,113 @@
 .Logger;
+%0A%0Aimport me.buildcarter8.iBukkit.listeners.PlayerLogin;%0Aimport me.buildcarter8.iBukkit.utils.Ips;
 %0Aimport 
@@ -205,16 +205,42 @@
 sages;%0A%0A
+import org.bukkit.Bukkit;%0A
 import o
@@ -365,24 +365,64 @@
 ity.Player;%0A
+import org.bukkit.plugin.PluginManager;%0A
 import org.b
@@ -1280,24 +1280,142 @@
  usable!%22);%0A
+    %09final PluginManager pm = Bukkit.getServer().getPluginManager();%0A   %09 pm.registerEvents(new PlayerLogin(), this);%0A
     %7D%0A    //
@@ -1865,33 +1865,643 @@
 %7D%0A%09%09
-return true;%0A%09%09 %0A    %7D%0A%09%09 
+ else if(cmd.getName().equalsIgnoreCase(%22getIp%22))%0A%09%09 %7B%0A%09%09%09 if(sender.isOp())%0A%09%09%09 %7B%0A%09%09%09 if (args.length == 0)%0A%09%09%09 %7B%0A%09%09%09 sender.sendMessage(ChatColor.RED + %22Your ip is: %22 + Ips.getIp(player));%0A%09%09%09 %7D%0A%09%09%09 else if (args.length == 1) %7B%0A%09%09%09        if (player.getServer().getPlayer(args%5B0%5D) != null) %7B%0A%09%09%09          Player targetPlayer = player.getServer().getPlayer(args%5B0%5D);%0A%09%09%09          sender.sendMessage(ChatColor.RED + targetPlayer.getName() + %22's ip is: %22 + Ips.getIp(targetPlayer));%0A%09%09%09        %7D%0A%09%09%09 %7D%0A%09%09%09        else%0A%09%09%09        %09sender.sendMessage(ChatColor.RED + %22NOPE%22);%0A%09%09%09 %0A%09%09 %7D%0A%09%09return true;%0A%09%09 %0A    %7D%0A%09%09return true;%0A%09%09 %0A%7D%0A    %7B%0A%7D
 %0A%7D%0A

Update Main.java