diff --git a/src/main/java/de/shiewk/smoderation/inventory/SModMenu.java b/src/main/java/de/shiewk/smoderation/inventory/SModMenu.java index 54e457d..92489ec 100644 --- a/src/main/java/de/shiewk/smoderation/inventory/SModMenu.java +++ b/src/main/java/de/shiewk/smoderation/inventory/SModMenu.java @@ -207,7 +207,7 @@ public class SModMenu extends PageableCustomInventory { if (punishment.wasCancelled()){ lore.add(applyFormatting(Component.text("Cancelled by: ").color(NamedTextColor.RED).append(Component.text(PlayerUtil.offlinePlayerName(punishment.cancelledBy())).color(NamedTextColor.GOLD)))); } else if (punishment.isActive()) { - if ((punishment.type == PunishmentType.BAN && player.hasPermission("smod.cancelBan")) || (punishment.type == PunishmentType.MUTE && player.hasPermission("smod.cancelMute"))){ + if ((punishment.type == PunishmentType.BAN && player.hasPermission("smod.unban")) || (punishment.type == PunishmentType.MUTE && player.hasPermission("smod.unmute"))){ lore.add(Component.empty()); lore.add(applyFormatting(Component.text("\u00BB Click to cancel punishment").color(NamedTextColor.GOLD))); } @@ -233,7 +233,7 @@ public class SModMenu extends PageableCustomInventory { final Punishment punishment = punishments.get(ci); final ItemStack item = createPunishmentItem(punishment); if (punishment.isActive()){ - if ((punishment.type == PunishmentType.BAN && player.hasPermission("smod.cancelBan")) || (punishment.type == PunishmentType.MUTE && player.hasPermission("smod.cancelMute"))) { + if ((punishment.type == PunishmentType.BAN && player.hasPermission("smod.unban")) || (punishment.type == PunishmentType.MUTE && player.hasPermission("smod.unmute"))) { item.editMeta(meta -> meta.getPersistentDataContainer().set(PUNISHMENT_STORE_KEY, PersistentDataType.LONG, punishment.time)); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 06c78c6..cfa7f03 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -58,10 +58,10 @@ permissions: smod.notifications: default: op description: Allows the player to be notified when a punishment is issued. - smod.cancelMute: + smod.unmute: default: op description: Allows the player to unmute other players. - smod.cancelBan: + smod.unban: default: op description: Allows the player to unban other players. smod.logs: