Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Integer getLimit(Player p) {
- Integer limit = 0;
- Integer maxlimit = 255;
- if(p.hasPermission("pl3xnpc.limit.*"))
- return -1;
- else
- for(int i = 0; i < maxlimit; i++)
- if(p.hasPermission("pl3xnpc.limit." + i))
- if (i > limit)
- limit = i;
- return limit;
- }
Advertisement
Add Comment
Please, Sign In to add comment