Ip (Expression) — Skript
Addon: Skript · Category: Expression · Since: 1.4, 2.2-dev26 (when used in connect event), 2.3 (when used in server list ping event)
Syntax
IP[s][( |-)address[es]] of %players%Description
The IP address of a player, or the connected player in a <a href='#connect'>connect</a> event, or the pinger in a <a href='#server_list_ping'>server list ping</a> event.
Examples
ban the IP address of the player")
broadcast "Banned the IP %IP of player%"
on connect:
log "[%now%] %player% (%ip%) is connected to the server."
on server list ping:
send "%IP-address%" to the console