Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3import java.io.BufferedReader;
4import java.io.InputStreamReader;
5
6public class FontAllowedCharacters {
7
8 public static final String allowedCharacters = a();
9 public static final char[] b = new char[] { '/', '\n', '\r', '\t', '\u0000', '\f', '`', '?', '*', '\\', '<', '>', '|', '\"', ':' };
10
11 public FontAllowedCharacters() {
12 }
13
14 private static String a() {
15 String s = "";
16
17 try {
18 BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(FontAllowedCharacters.class.getResourceAsStream("/font.txt"), "UTF-8"));
19 String s1 = "";
20
21 while ((s1 = bufferedreader.readLine()) != null) {
22 if (!s1.startsWith("#")) {
23 s = s + s1;
24 }
25 }
26
27 bufferedreader.close();
28 } catch (Exception exception) {
29 ;
30 }
31
32 return s;
33 }
34}