mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Add global permission for all known furnace types
https://github.com/Zrips/Jobs/issues/1073#issuecomment-854112805
This commit is contained in:
parent
68b7630500
commit
30e09d443b
@ -1358,6 +1358,11 @@ public class JobsPlayer {
|
||||
return (int) maxV;
|
||||
}
|
||||
|
||||
if (type != BlockTypes.BREWING_STAND &&
|
||||
(maxV = Jobs.getPermissionManager().getMaxPermission(this, "jobs.maxfurnaceownership")) > 0D) {
|
||||
return (int) maxV;
|
||||
}
|
||||
|
||||
String perm = "jobs.max" + (type == BlockTypes.FURNACE
|
||||
? "furnaces" : type == BlockTypes.BLAST_FURNACE ? "blastfurnaces" : type == BlockTypes.SMOKER ? "smokers"
|
||||
: type == BlockTypes.BREWING_STAND ? "brewingstands" : "");
|
||||
|
Loading…
Reference in New Issue
Block a user