mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
show ip address on ban
This commit is contained in:
parent
5b0ba0917c
commit
b7c1a46cbd
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user