show ip address on ban

This commit is contained in:
Robinson Gallego 2020-02-03 23:54:37 -05:00
parent 5b0ba0917c
commit b7c1a46cbd

View File

@ -171,7 +171,7 @@ public class Ban implements ConfigLoadable, ConfigSavable, Validatable
return hasExpiry() && expiryUnix < FUtil.getUnixTime();
}
public String bakeKickMessage()
public String bakeKickMessage(Player player)
{
final StringBuilder message = new StringBuilder(ChatColor.GOLD + "You");
@ -203,6 +203,9 @@ public class Ban implements ConfigLoadable, ConfigSavable, Validatable
.append(DATE_FORMAT.format(FUtil.getUnixDate(expiryUnix)));
}
message.append("\n").append(ChatColor.RED).append("IP Address: ").append(ChatColor.GOLD)
.append(FUtil.getFuzzyIp(Ips.getIp(player)));
return message.toString();
}