Player.usedPort

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

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

Examples

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

Meta