Remove leftover debug chat formatting for PlaceholderAPI (#1031)

## Fixes
* Removes unnecessary leftover chat formatting from copy paste that I just never noticed
This commit is contained in:
Josh 2019-10-23 22:50:30 -04:00 committed by Christopher Martin
parent a8a8daa6d0
commit e372c7dbae

View file

@ -45,11 +45,10 @@ public class PlaceholderAPIHook extends PlaceholderExpansion {
c = bPlayer.getElements().get(0).getColor(); c = bPlayer.getElements().get(0).getColor();
e = bPlayer.getElements().get(0).getName(); e = bPlayer.getElements().get(0).getName();
} }
final String element = ConfigManager.languageConfig.get().getString("Chat.Prefixes." + e);
if (params.equals("element")) { if (params.equals("element")) {
return c + element + ChatColor.RESET; return e;
} else if (params.equals("elementcolor")) { } else if (params.equals("elementcolor")) {
return c + ""; return c.toString();
} }
} else if (params.equals("elements")) { } else if (params.equals("elements")) {
return bPlayer.getElements().stream().map(item -> item.getColor() + item.getName()).collect(joining(" ")); return bPlayer.getElements().stream().map(item -> item.getColor() + item.getName()).collect(joining(" "));