mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 07:55:03 +00:00
Fix Codacy isues
This commit is contained in:
parent
b0f4017cde
commit
cc4d005d5f
3 changed files with 9 additions and 3 deletions
|
@ -138,6 +138,11 @@ public class GuildCommand extends Common implements CommandExecutor, TabComplete
|
||||||
return guild.getMemberNames();
|
return guild.getMemberNames();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
|
|
@ -825,7 +825,7 @@ public class Guild
|
||||||
|
|
||||||
if (Common.GUILD_CHAT_SPY.contains(p) && player != p && !isMember(p))
|
if (Common.GUILD_CHAT_SPY.contains(p) && player != p && !isMember(p))
|
||||||
{
|
{
|
||||||
p.sendMessage(GUtil.colorize("&7[&bGuild Chat Spy &7| &b" + name + "&7] " + player.getName() + " &8\u00BB &6") + message);
|
p.sendMessage(GUtil.colorize("&7[&bGuild " + (modChat ? "Mod " : "") + "Chat Spy &7| &b" + name + "&7] " + player.getName() + " &8\u00BB &6") + message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,15 +40,16 @@ public class GUtil
|
||||||
|
|
||||||
public static String removeColorCodes(String string)
|
public static String removeColorCodes(String string)
|
||||||
{
|
{
|
||||||
|
String s = null;
|
||||||
if (string != null)
|
if (string != null)
|
||||||
{
|
{
|
||||||
Matcher matcher = CHAT_COLOR_FORMAT.matcher(string);
|
Matcher matcher = CHAT_COLOR_FORMAT.matcher(string);
|
||||||
while (matcher.find())
|
while (matcher.find())
|
||||||
{
|
{
|
||||||
string = string.replaceAll(matcher.group(), "");
|
s = string.replaceAll(matcher.group(), "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return string;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean containsBlacklistedWord(String string)
|
public static boolean containsBlacklistedWord(String string)
|
||||||
|
|
Loading…
Reference in a new issue