From a83683b68e8d3a58df23d0d6b5256a437a5928e7 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 5 Nov 2016 09:08:06 -0400 Subject: [PATCH] =?UTF-8?q?Added=20=C2=A7=20instead=20of=20&.=20(wonders?= =?UTF-8?q?=20whether=20this=20message=20will=20break=20github}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flairdoor/listeners/PortalListener.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/alisolarflare/components/flairdoor/listeners/PortalListener.java b/src/alisolarflare/components/flairdoor/listeners/PortalListener.java index 58af6f5..edf7866 100644 --- a/src/alisolarflare/components/flairdoor/listeners/PortalListener.java +++ b/src/alisolarflare/components/flairdoor/listeners/PortalListener.java @@ -95,12 +95,12 @@ public class PortalListener implements Listener{ User user = essentials.getUser(player); player.sendMessage("Recolouring Player as..." + dyecolour.toString()); - String name = user.getNickname(); + String name = user._getNickname(); player.sendMessage("name:" + name); String tempName = ""; for(int i = 0; i < name.length(); i++){ player.sendMessage("|"+name.charAt(i)+"|"); - if (name.charAt(i) != '&'){ + if (name.charAt(i) != '§'){ tempName += name.charAt(i); }else{ @@ -113,34 +113,34 @@ public class PortalListener implements Listener{ switch(dyecolour){ case GRAY: player.sendMessage("Adding GRAY"); - name = "&7" + name; + name = "§7" + name; break; case RED: player.sendMessage("Adding RED"); - name = "&4" + name; + name = "§4" + name; break; case ORANGE: player.sendMessage("Adding ORANGE"); - name = "&6" + name; + name = "§6" + name; break; case YELLOW: player.sendMessage("Adding YELLOW"); - name = "&e" + name; + name = "§e" + name; break; case LIME: case GREEN: player.sendMessage("Adding GREEN"); - name = "&a" + name; + name = "§a" + name; break; case CYAN: case LIGHT_BLUE: case BLUE: player.sendMessage("Adding BLUE"); - name = "&9" + name; + name = "§9" + name; break; case PURPLE: player.sendMessage("Adding PURPLE"); - name = "&5" + name; + name = "§5" + name; break; default: player.sendMessage("ERROR, PORTAL HAS INVALID UNDER-BLOCK");