mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 06:23:14 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a582e036e8
5 changed files with 224 additions and 101 deletions
|
@ -143,11 +143,11 @@ public class PlotMain extends JavaPlugin {
|
|||
*/
|
||||
public static int hasPermissionRange(Player player, String stub, int range) {
|
||||
if (player==null || player.isOp()) {
|
||||
return range;
|
||||
}
|
||||
if (player.hasPermission(stub + ".*")) {
|
||||
return range;
|
||||
}
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
if (player.hasPermission(stub + ".*")) {
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
for (int i = range; i > 0; i--) {
|
||||
if (player.hasPermission(stub + "." + i)) {
|
||||
return i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue