mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:46:31 +00:00
Fixed the ban reason on the same line as the actual ban
Resolves https://github.com/TotalFreedom/TotalFreedomMod/pull/250
This commit is contained in:
parent
a2439a7093
commit
11eef83a65
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ public class Command_gtfo extends TFM_Command
|
|||
|
||||
// ban IP address:
|
||||
String ip = TFM_Util.getFuzzyIp(player.getAddress().getAddress().getHostAddress());
|
||||
TFM_Util.bcastMsg(String.format("Banning: %s, IP: %s.", player.getName(), ip), ChatColor.RED);
|
||||
TFM_Util.bcastMsg(String.format("Banning: %s, IP: %s.", player.getName(), ip), ChatColor.RED + (reason != null ? ("Reason: " + ChatColor.YELLOW + reason) : ""));
|
||||
|
||||
TFM_BanManager.addIpBan(new TFM_Ban(ip, player.getName(), sender.getName(), null, reason));
|
||||
|
||||
|
|
Loading…
Reference in a new issue