From 591ff06bb31b1e12a222facc223d3956fb7124ed Mon Sep 17 00:00:00 2001 From: Grzybol Date: Fri, 19 Apr 2024 01:45:38 +0200 Subject: [PATCH] - added permission for '/be reroll' - betterelo.reroll --- .../java/betterbox/mine/game/betterelo/BetterEloCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/betterbox/mine/game/betterelo/BetterEloCommand.java b/src/main/java/betterbox/mine/game/betterelo/BetterEloCommand.java index c2aea97..26bdc1c 100644 --- a/src/main/java/betterbox/mine/game/betterelo/BetterEloCommand.java +++ b/src/main/java/betterbox/mine/game/betterelo/BetterEloCommand.java @@ -74,7 +74,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St case 1: switch (args[0].toLowerCase()) { case "reroll": - if(sender.isOp()) { + if(sender.isOp() || sender.hasPermission("betterelo.reroll")) { handleRerollCommand(sender); } break;