SHOW:
|
|
- or go back to the newest paste.
| 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("plotme.limit." + i))
|
| 8 | + | if(p.hasPermission("pl3xnpc.limit." + i))
|
| 9 | if (i > limit) | |
| 10 | limit = i; | |
| 11 | return limit; | |
| 12 | } |