Player.usedIp

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

class Player
final pure nothrow @property @safe @nogc const
string
usedIp
()

Examples

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

Meta