Odd question.

Discussion in 'Spigot Plugin Development' started by Sirenum, May 5, 2015.

  1. Random question.

    I'm trying to get the IP of a server.

    Logically, you would think to use:
    PHP:
    Bukkit.getServer().getIp();
    However, this returns:
    [​IMG]

    So what am I missing.. ?
     
  2. gigosaurus

    Supporter

    Reading the source, that method does this:
    Code (Java):
    public String getIp() {
        return getConfigString("server-ip", "");
    }
    That method is looking up "server-ip" in your server.properties.
     
    • Winner Winner x 1