From 11eef83a657fca43d215c063e2021e3fa05d7f7a Mon Sep 17 00:00:00 2001 From: "Ronit Sajeey (LevnettUK_Ronit)" Date: Fri, 1 Aug 2014 15:39:07 +0100 Subject: [PATCH] Fixed the ban reason on the same line as the actual ban Resolves https://github.com/TotalFreedom/TotalFreedomMod/pull/250 --- src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java index 19623f4..37b21c8 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java @@ -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));