From e372c7dbaea8a208196077b1d9fab8cad06f3129 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 23 Oct 2019 22:50:30 -0400 Subject: [PATCH] Remove leftover debug chat formatting for PlaceholderAPI (#1031) ## Fixes * Removes unnecessary leftover chat formatting from copy paste that I just never noticed --- .../projectkorra/projectkorra/hooks/PlaceholderAPIHook.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/projectkorra/projectkorra/hooks/PlaceholderAPIHook.java b/src/com/projectkorra/projectkorra/hooks/PlaceholderAPIHook.java index 29d50c2f..485334e2 100644 --- a/src/com/projectkorra/projectkorra/hooks/PlaceholderAPIHook.java +++ b/src/com/projectkorra/projectkorra/hooks/PlaceholderAPIHook.java @@ -45,11 +45,10 @@ public class PlaceholderAPIHook extends PlaceholderExpansion { c = bPlayer.getElements().get(0).getColor(); e = bPlayer.getElements().get(0).getName(); } - final String element = ConfigManager.languageConfig.get().getString("Chat.Prefixes." + e); if (params.equals("element")) { - return c + element + ChatColor.RESET; + return e; } else if (params.equals("elementcolor")) { - return c + ""; + return c.toString(); } } else if (params.equals("elements")) { return bPlayer.getElements().stream().map(item -> item.getColor() + item.getName()).collect(joining(" "));