diff options
Diffstat (limited to 'EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/Colors.java')
-rw-r--r-- | EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/Colors.java | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/Colors.java b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/Colors.java deleted file mode 100644 index 053b177e5..000000000 --- a/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/Colors.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.earth2me.essentials.anticheat; - -import org.bukkit.ChatColor; - - -/** - * Manages color codes in NoCheat - * - */ -public class Colors -{ - /** - * Replace instances of &X with a color - * - * @param text - * @return - */ - public static String replaceColors(String text) - { - for (ChatColor c : ChatColor.values()) - { - text = text.replace("&" + c.getChar(), c.toString()); - } - - return text; - } - - /** - * Remove instances of &X - * - * @param text - * @return - */ - public static String removeColors(String text) - { - for (ChatColor c : ChatColor.values()) - { - text = text.replace("&" + c.getChar(), ""); - } - return text; - } -} |