Player.usedPort

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

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