diff --git a/src/main/java/space/bxteam/ndailyrewards/managers/reward/ActionsExecutor.java b/src/main/java/space/bxteam/ndailyrewards/managers/reward/ActionsExecutor.java index 123a2ae..9eecef0 100644 --- a/src/main/java/space/bxteam/ndailyrewards/managers/reward/ActionsExecutor.java +++ b/src/main/java/space/bxteam/ndailyrewards/managers/reward/ActionsExecutor.java @@ -65,8 +65,12 @@ public void execute() { break; case PERMISSION: String[] permParts = coloredLine.split(" ", 2); - if (permParts.length == 2 && player.hasPermission(permParts[0])) { - Bukkit.dispatchCommand(Bukkit.getConsoleSender(), permParts[1].replace("", player.getName())); + if (permParts.length == 2) { + String permission = permParts[0].replace("{", "").replace("}", ""); + + if (player.hasPermission(permission)) { + Bukkit.dispatchCommand(Bukkit.getConsoleSender(), permParts[1].replace("", player.getName())); + } } break; case LUCK: