Guest User

Untitled

a guest
May 5th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static Integer getLimit(Player p) {
  2. Integer limit = 0;
  3. Integer maxlimit = 255;
  4. if(p.hasPermission("pl3xnpc.limit.*"))
  5. return -1;
  6. else
  7. for(int i = 0; i < maxlimit; i++)
  8. if(p.hasPermission("pl3xnpc.limit." + i))
  9. if (i > limit)
  10. limit = i;
  11. return limit;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment