Merge pull request #294 from Obi2kanobi/contributing

Format GTFO reason broadcast. Fixes #293
This commit is contained in:
Jerom van der Sar 2014-08-24 11:21:24 +01:00
commit eaa23985bd

View File

@ -80,9 +80,9 @@ public class Command_gtfo extends TFM_Command
final StringBuilder bcast = new StringBuilder("Banning: ").append(player.getName()).append(", IP: ").append(ip);
if (reason != null)
{
bcast.append(ChatColor.RED).append(" - Reason: ").append(ChatColor.YELLOW).append(reason);
bcast.append(" - Reason: ").append(ChatColor.YELLOW).append(reason);
}
TFM_Util.bcastMsg(bcast.toString());
TFM_Util.bcastMsg(bcast.toString(), ChatColor.RED);
TFM_BanManager.addIpBan(new TFM_Ban(ip, player.getName(), sender.getName(), null, reason));