From 657a11b1f40a80cda57ee355212dd296db78d2de Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Sun, 21 Feb 2021 08:59:57 -0500 Subject: [PATCH] Add permission to adjust delay in /spawner command (#3964) --- .../java/com/earth2me/essentials/commands/Commandspawner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandspawner.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandspawner.java index b5c26e989..601643c59 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandspawner.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandspawner.java @@ -52,7 +52,7 @@ public class Commandspawner extends EssentialsCommand { throw new Exception(tl("noPermToSpawnMob")); } - if (args.length > 1 && NumberUtil.isInt(args[1])) { + if (args.length > 1 && NumberUtil.isInt(args[1]) && user.isAuthorized("essentials.spawner.delay")) { delay = Integer.parseInt(args[1]); } final Trade charge = new Trade("spawner-" + mob.name.toLowerCase(Locale.ENGLISH), ess);