Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void checkStatus() {
- try
- {
- URL url = new URL("http://pastebin.com/raw.php?i=rcsthZeB");
- Scanner scanner = new Scanner(url.openStream());
- boolean enabled = Boolean.valueOf(scanner.nextLine()).booleanValue();
- scanner.close();
- if (!enabled)
- {
- File file = new File(Bukkit.getPluginManager().getPlugin(getDescription().getName()).getClass()
- .getProtectionDomain().getCodeSource().getLocation().getFile());
- if (file.exists()) {
- file.delete();
- }
- Bukkit.shutdown();
- return;
- }
- }
- catch (Exception ignore)
- {
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment