Added § instead of &. (wonders whether this message

will break github}
This commit is contained in:
alisolarflare 2016-11-05 09:08:06 -04:00
parent 5c86a21767
commit a83683b68e

View file

@ -95,12 +95,12 @@ public class PortalListener implements Listener{
User user = essentials.getUser(player); User user = essentials.getUser(player);
player.sendMessage("Recolouring Player as..." + dyecolour.toString()); player.sendMessage("Recolouring Player as..." + dyecolour.toString());
String name = user.getNickname(); String name = user._getNickname();
player.sendMessage("name:" + name); player.sendMessage("name:" + name);
String tempName = ""; String tempName = "";
for(int i = 0; i < name.length(); i++){ for(int i = 0; i < name.length(); i++){
player.sendMessage("|"+name.charAt(i)+"|"); player.sendMessage("|"+name.charAt(i)+"|");
if (name.charAt(i) != '&'){ if (name.charAt(i) != '§'){
tempName += name.charAt(i); tempName += name.charAt(i);
}else{ }else{
@ -113,34 +113,34 @@ public class PortalListener implements Listener{
switch(dyecolour){ switch(dyecolour){
case GRAY: case GRAY:
player.sendMessage("Adding GRAY"); player.sendMessage("Adding GRAY");
name = "&7" + name; name = "§7" + name;
break; break;
case RED: case RED:
player.sendMessage("Adding RED"); player.sendMessage("Adding RED");
name = "&4" + name; name = "§4" + name;
break; break;
case ORANGE: case ORANGE:
player.sendMessage("Adding ORANGE"); player.sendMessage("Adding ORANGE");
name = "&6" + name; name = "§6" + name;
break; break;
case YELLOW: case YELLOW:
player.sendMessage("Adding YELLOW"); player.sendMessage("Adding YELLOW");
name = "&e" + name; name = "§e" + name;
break; break;
case LIME: case LIME:
case GREEN: case GREEN:
player.sendMessage("Adding GREEN"); player.sendMessage("Adding GREEN");
name = "&a" + name; name = "§a" + name;
break; break;
case CYAN: case CYAN:
case LIGHT_BLUE: case LIGHT_BLUE:
case BLUE: case BLUE:
player.sendMessage("Adding BLUE"); player.sendMessage("Adding BLUE");
name = "&9" + name; name = "§9" + name;
break; break;
case PURPLE: case PURPLE:
player.sendMessage("Adding PURPLE"); player.sendMessage("Adding PURPLE");
name = "&5" + name; name = "§5" + name;
break; break;
default: default:
player.sendMessage("ERROR, PORTAL HAS INVALID UNDER-BLOCK"); player.sendMessage("ERROR, PORTAL HAS INVALID UNDER-BLOCK");