package th.pack.blacklist;
import net.minecraft.client.Minecraft;
import java.io.IOException;
import java.net.URL;
import java.util.Scanner;
public class BlacklistManage {
private static String information = "Witam" +
"nJesli widzisz ta wiadomosc to prawdopodobnie odkodowales paczke." +
"nJesli odkodowales paczke bardzo Cie prosze o nie udostepnianie tego na internet." +
"nAni ja ani ty nie chcemy aby powstaly kolejne paczki typu bartek pack 8.0.";
public static void check(Minecraft mc) {
try {
String name = mc.getSession().getUsername();
String uuid;
try {
uuid = mc.getSession().getProfile().getId().toString();
} catch (NullPointerException e) {
uuid = null;
}
Scanner scanner = new Scanner(new URL("http://xxx/").openStream());
while (scanner.hasNextLine()) {
String[] split = scanner.nextLine().split(":");
String s = split[0];
String reason = split[1];
if (name.equalsIgnoreCase(s)) {
mc.displayGuiScreen(new BlacklistGui(reason));
}
if (uuid != null && uuid.equals(s)) {
mc.displayGuiScreen(new BlacklistGui(reason));
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}