mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 06:04:57 +00:00
Fix GTFO broadcast formatting. Fixes #293
This commit is contained in:
parent
b3c28d33f2
commit
e3f9452b9f
5 changed files with 5 additions and 9 deletions
|
@ -81,9 +81,9 @@ public class Command_gtfo extends TFM_Command
|
||||||
final StringBuilder bcast = new StringBuilder("Banning: ").append(player.getName()).append(", IP: ").append(ip);
|
final StringBuilder bcast = new StringBuilder("Banning: ").append(player.getName()).append(", IP: ").append(ip);
|
||||||
if (reason != null)
|
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));
|
TFM_BanManager.addIpBan(new TFM_Ban(ip, player.getName(), sender.getName(), null, reason));
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,9 @@ package me.StevenLawson.TotalFreedomMod.Commands;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_PlayerRank;
|
import me.StevenLawson.TotalFreedomMod.TFM_PlayerRank;
|
||||||
|
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_Admin;
|
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_AdminList;
|
import me.StevenLawson.TotalFreedomMod.TFM_AdminList;
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_Util;
|
import me.StevenLawson.TotalFreedomMod.TFM_Util;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import net.minecraft.util.org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
|
@ -18,7 +18,6 @@ public class Command_nickclean extends TFM_Command
|
||||||
{
|
{
|
||||||
ChatColor.MAGIC,
|
ChatColor.MAGIC,
|
||||||
ChatColor.STRIKETHROUGH,
|
ChatColor.STRIKETHROUGH,
|
||||||
ChatColor.BOLD,
|
|
||||||
ChatColor.ITALIC,
|
ChatColor.ITALIC,
|
||||||
ChatColor.UNDERLINE,
|
ChatColor.UNDERLINE,
|
||||||
ChatColor.BLACK
|
ChatColor.BLACK
|
||||||
|
|
|
@ -4,7 +4,7 @@ import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_Util;
|
import me.StevenLawson.TotalFreedomMod.TFM_Util;
|
||||||
import org.apache.commons.lang.exception.ExceptionUtils;
|
import net.minecraft.util.org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
import org.bukkit.configuration.InvalidConfigurationException;
|
import org.bukkit.configuration.InvalidConfigurationException;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
|
@ -5,7 +5,7 @@ import java.util.Collections;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import net.minecraft.util.org.apache.commons.lang3.StringUtils;
|
||||||
import org.bukkit.configuration.ConfigurationSection;
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
|
|
||||||
public class TFM_Admin
|
public class TFM_Admin
|
||||||
|
|
Loading…
Reference in a new issue