Merge pull request #479 from jedk1/master

Fix custom element prefixes
This commit is contained in:
OmniCypher 2016-04-09 17:09:34 -07:00
commit b99f40c0e3
2 changed files with 1 additions and 8 deletions

View file

@ -102,8 +102,7 @@ public class Element {
}
public String getPrefix() {
String prefix = this.plugin.getName().equalsIgnoreCase("ProjectKorra") ? this.getColor() + ConfigManager.languageConfig.get().getString("Chat.Prefixes." + name) + " " : ChatColor.WHITE + "[Nonbender] ";
return prefix;
return getColor() + "[" + getName() + (getType() != null ? getType().getBender() : "") + "] ";
}
public ChatColor getColor() {

View file

@ -44,12 +44,6 @@ public class ConfigManager {
config.addDefault("Chat.Enable", true);
config.addDefault("Chat.Format", "<name>: <message>");
config.addDefault("Chat.Prefixes.Air", "[Airbender]");
config.addDefault("Chat.Prefixes.Water", "[Waterbender]");
config.addDefault("Chat.Prefixes.Earth", "[Earthbender]");
config.addDefault("Chat.Prefixes.Fire", "[Firebender]");
config.addDefault("Chat.Prefixes.Chi", "[Chiblocker]");
config.addDefault("Chat.Prefixes.Avatar", "[Avatar]");
config.addDefault("Chat.Colors.Avatar", "DARK_PURPLE");
config.addDefault("Chat.Colors.Air", "GRAY");
config.addDefault("Chat.Colors.AirSub", "DARK_GRAY");