Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 33 lines 859 B view raw
1package net.minecraft.server; 2 3import java.io.IOException; 4import java.util.Properties; 5 6public class StatisticStorage { 7 8 private static StatisticStorage a = new StatisticStorage(); 9 private Properties b = new Properties(); 10 11 private StatisticStorage() { 12 try { 13 this.b.load(StatisticStorage.class.getResourceAsStream("/lang/en_US.lang")); 14 this.b.load(StatisticStorage.class.getResourceAsStream("/lang/stats_US.lang")); 15 } catch (IOException ioexception) { 16 ioexception.printStackTrace(); 17 } 18 } 19 20 public static StatisticStorage a() { 21 return a; 22 } 23 24 public String a(String s) { 25 return this.b.getProperty(s, s); 26 } 27 28 public String a(String s, Object... aobject) { 29 String s1 = this.b.getProperty(s, s); 30 31 return String.format(s1, aobject); 32 } 33}