Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

charset changed to UTF-8 to prevent compiling errors #121

Merged
merged 2 commits into from

2 participants

@coegho

No description provided.

@ElgarL ElgarL merged commit 86bd027 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 12, 2014
  1. @coegho
Commits on Feb 13, 2014
  1. @coegho
This page is out of date. Refresh to see the latest.
View
14 src/com/palmergames/bukkit/towny/command/TownyCommand.java
@@ -251,13 +251,13 @@ else if (args[0].equalsIgnoreCase("land"))
public List<String> getUniverseStats() {
List<String> output = new ArrayList<String>();
- output.add("§0-§4###§0---§4###§0-");
- output.add("§4#§c###§4#§0-§4#§c###§4#§0 §6[§eTowny " + plugin.getVersion() + "§6]");
- output.add("§4#§c####§4#§c####§4# §3By: §bChris H (Shade)/Llmdl/ElgarL");
- output.add("§0-§4#§c#######§4#§0-");
- output.add("§0--§4##§c###§4##§0-- " + "§3Residents: §b" + Integer.toString(TownyUniverse.getDataSource().getResidents().size()) + Colors.Gray + " | " + "§3Towns: §b" + Integer.toString(TownyUniverse.getDataSource().getTowns().size()) + Colors.Gray + " | " + "§3Nations: §b" + Integer.toString(TownyUniverse.getDataSource().getNations().size()));
- output.add("§0----§4#§c#§4#§0---- " + "§3Worlds: §b" + Integer.toString(TownyUniverse.getDataSource().getWorlds().size()) + Colors.Gray + " | " + "§3TownBlocks: §b" + Integer.toString(TownyUniverse.getDataSource().getAllTownBlocks().size()));
- output.add("§0-----§4#§0----- ");
+ output.add("\u00A70-\u00A74###\u00A70---\u00A74###\u00A70-");
+ output.add("\u00A74#\u00A7c###\u00A74#\u00A70-\u00A74#\u00A7c###\u00A74#\u00A70 \u00A76[\u00A7eTowny " + plugin.getVersion() + "\u00A76]");
+ output.add("\u00A74#\u00A7c####\u00A74#\u00A7c####\u00A74# \u00A73By: \u00A7bChris H (Shade)/Llmdl/ElgarL");
+ output.add("\u00A70-\u00A74#\u00A7c#######\u00A74#\u00A70-");
+ output.add("\u00A70--\u00A74##\u00A7c###\u00A74##\u00A70-- " + "\u00A73Residents: \u00A7b" + Integer.toString(TownyUniverse.getDataSource().getResidents().size()) + Colors.Gray + " | " + "\u00A73Towns: \u00A7b" + Integer.toString(TownyUniverse.getDataSource().getTowns().size()) + Colors.Gray + " | " + "\u00A73Nations: \u00A7b" + Integer.toString(TownyUniverse.getDataSource().getNations().size()));
+ output.add("\u00A70----\u00A74#\u00A7c#\u00A74#\u00A70---- " + "\u00A73Worlds: \u00A7b" + Integer.toString(TownyUniverse.getDataSource().getWorlds().size()) + Colors.Gray + " | " + "\u00A73TownBlocks: \u00A7b" + Integer.toString(TownyUniverse.getDataSource().getAllTownBlocks().size()));
+ output.add("\u00A70-----\u00A74#\u00A70----- ");
return output;
}
View
8 src/com/palmergames/bukkit/util/ChatTools.java
@@ -65,8 +65,8 @@
String c = "f";
for (int i = 0; i < out.size(); i++) {
- if (!out.get(i).startsWith("§") && !c.equalsIgnoreCase("f"))
- out.set(i, "§" + c + out.get(i));
+ if (!out.get(i).startsWith("\u00A7") && !c.equalsIgnoreCase("f"))
+ out.set(i, "\u00A7" + c + out.get(i));
for (int index = 0; index < lineLength; index++)
try {
@@ -89,7 +89,7 @@ public static String stripColour(String s) {
String out = "";
for (int i = 0; i < s.length(); i++) {
String c = s.substring(i, i + 1);
- if (c.equals("§"))
+ if (c.equals("\u00A7"))
i += 1;
else
out += c;
@@ -128,7 +128,7 @@ public static void main(String[] args) {
for (String line : ChatTools.listArr(players))
System.out.println(line);
- String testLine = "Loren Ipsum blarg voila tssssssh, boom wakka wakka §apacman on a boat bitch. From the boat union. Beata lingiushtically §1nootchie lolk erness.";
+ String testLine = "Loren Ipsum blarg voila tssssssh, boom wakka wakka \u00A7apacman on a boat bitch. From the boat union. Beata lingiushtically \u00A71nootchie lolk erness.";
for (String line : ChatTools.color(testLine))
System.out.println(line);
}
Something went wrong with that request. Please try again.