Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement