1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

Add global permission for all known furnace types

https://github.com/Zrips/Jobs/issues/1073#issuecomment-854112805
This commit is contained in:
montlikadani 2021-06-04 16:26:23 +02:00
parent 68b7630500
commit 30e09d443b

View File

@ -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" : "");