SHARE
TWEET

Untitled

a guest Aug 13th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This causes a NullPointerException if a user named "Risugami"
  2. // attempts to use the mod. blackList() is called in the mods initialization.
  3.  
  4. public static void freeSweeties() {
  5.   giveSweetiesTo("Risugami");
  6. }
  7.  
  8. public static void giveSweetiesTo(String username) {
  9.   String username = ModLoader.getMinecraftInstance().j.b;
  10.  
  11.   if (player.equalsIgnoreCase(username)) {
  12.     ModLoader.ThrowException("Free Sweeties!", null);
  13.   }
  14. }
RAW Paste Data
Top