Player.usedIp

Gets the ip and the port the player has used to join the server.

  1. string usedIp [@property getter]
    class Player
    final pure nothrow @property @safe @nogc const
    string
    usedIp
    ()
  2. ushort usedPort [@property getter]

Examples

if(player.usedIp != "example.com") {
   player.sendMessage("Hey! Use the right ip: example.com");
}

Meta