@@ -0,0 +1,1065 @@
+package com.github.elcreeperhd.CurseIPFix;%0A%0Aimport org.bukkit.craftbukkit.libs.jline.internal.Log;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.Listener;%0Aimport org.bukkit.event.player.PlayerLoginEvent;%0Aimport org.bukkit.event.player.PlayerLoginEvent.Result;%0A%0Apublic class EventListener implements Listener%7B%0A%0A%0A%09private Main plugin;%0A%0A%09public EventListener(Main plugin)%0A%09%7B%0A%09%09this.plugin = plugin;%0A%09%7D%0A%09boolean ipforwarding = true;%0A%09String fixedip;%0A%0A%09@EventHandler(ignoreCancelled=true)%0A%09public void LoginEvent(PlayerLoginEvent ev)%7B%0A%09%09if(ipforwarding == true)%09%7B%0A%09%09%09fixedip = ev.getRealAddress().toString();%0A%09%09%7Delse if(ipforwarding == false)%7B%09%0A%09%09%09fixedip = ev.getAddress().toString();%0A%09%09%7D%09%0A%0A%09%09fixedip = fixedip.replaceAll(%22/%22, %22%22);%0A%09%09final String bungeeip = %22104.129.41.37%22;%0A%09%09Log.info(ev.getPlayer().getName() + %22joined using %22 + fixedip);%0A%09%09try%7B%09%0A%0A%09%09%09if(!fixedip.equals(bungeeip))%7B%09%0A%09%09%09%09ev.disallow(Result.KICK_OTHER, %22Please connect using the bungee IP!%22);%0A%09%09%09%7D//end ip check%0A%0A%09%09%7D//end try%0A%09%09catch(Exception e)%7B%09%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%0A%0A%09%7D%0A%0A%0A%7D%0A

Create EventListener.java