public static String getServerIP(){
		if(serverip == null) {
			final int port = Bukkit.getPort();

			if(Bukkit.getServer().getIp() == null){
				serverip = Bukkit.getServer().getIp();
				if (port != 25565)
					serverip += ":"+port;
			}
			
			URL whatismyip;
			try {
				whatismyip = new URL("http://BattlePunishments.net/grabbers/ip.php");
			} catch (Exception e) {
				e.printStackTrace();
				return null;
			}

			WebURL url = new WebURL(whatismyip);

			url.getPage(new URLResponseHandler() {
				public void validResponse(final BufferedReader br) throws IOException {
					String ip = br.readLine();
					if(ip == null)
						throw new NullPointerException();
					serverip = ip;
				}


				public void invalidResponse(Exception e) {
					e.printStackTrace();
				}
			});

		}
		return serverip;
	}