From 30e09d443b466030b898211611fa7dc5e442d4d4 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Fri, 4 Jun 2021 16:26:23 +0200 Subject: [PATCH] Add global permission for all known furnace types https://github.com/Zrips/Jobs/issues/1073#issuecomment-854112805 --- src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java index e334876f..973a067c 100644 --- a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java +++ b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java @@ -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" : "");