From 5d4103fe929f75fe0a336247b06690dde1580652 Mon Sep 17 00:00:00 2001 From: Kre0lidge <149087292+Cirkutry@users.noreply.github.com> Date: Wed, 23 Jul 2025 01:39:45 +0530 Subject: [PATCH] Add permissions for new MiniMessage tags (#680) * - Add new tags (and permissions for them): - Pride - Selector - Shadow - Transition - Bump Adventure to support Pride tag * Remove selector tag and add in missing permissions * Rename shadow to shadow_color --- .../draycia/carbon/common/messages/TagPermissions.java | 5 ++++- common/src/main/resources/carbon-permissions.yml | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/net/draycia/carbon/common/messages/TagPermissions.java b/common/src/main/java/net/draycia/carbon/common/messages/TagPermissions.java index f0780582..e321101d 100644 --- a/common/src/main/java/net/draycia/carbon/common/messages/TagPermissions.java +++ b/common/src/main/java/net/draycia/carbon/common/messages/TagPermissions.java @@ -47,7 +47,10 @@ public final class TagPermissions { Map.entry("gradient", StandardTags.gradient()), Map.entry("rainbow", StandardTags.rainbow()), Map.entry("reset", StandardTags.reset()), - Map.entry("newline", StandardTags.newline()) + Map.entry("newline", StandardTags.newline()), + Map.entry("pride", StandardTags.pride()), + Map.entry("shadow_color", StandardTags.shadowColor()), + Map.entry("transition", StandardTags.transition()) ); private TagPermissions() { diff --git a/common/src/main/resources/carbon-permissions.yml b/common/src/main/resources/carbon-permissions.yml index b68b89df..7a54f81b 100644 --- a/common/src/main/resources/carbon-permissions.yml +++ b/common/src/main/resources/carbon-permissions.yml @@ -46,6 +46,9 @@ carbon.nickname.tags.insertion: "Allows the use of insertions in nicknames." carbon.nickname.tags.font: "Allows the use of fonts in nicknames." carbon.nickname.tags.reset: "Allows the use of the reset tag in nicknames." carbon.nickname.tags.newline: "Allows the use of the newline tag in nicknames." +carbon.nickname.tags.pride: "Allows the use of the pride tag in nicknames." +carbon.nickname.tags.shadow_color: "Allows the use of the shadow tag in nicknames." +carbon.nickname.tags.transition: "Allows the use of the transition tag in nicknames." # Party name tag permissions carbon.parties.name.tags.color: "Allows the use of colors in party names." @@ -65,6 +68,9 @@ carbon.parties.name.tags.insertion: "Allows the use of insertions in party names carbon.parties.name.tags.font: "Allows the use of fonts in party names." carbon.parties.name.tags.reset: "Allows the use of the reset tag in party names." carbon.parties.name.tags.newline: "Allows the use of the newline tag in party names." +carbon.parties.name.tags.pride: "Allows the use of the pride tag in party names." +carbon.parties.name.tags.shadow_color: "Allows the use of the shadow tag in party names." +carbon.parties.name.tags.transition: "Allows the use of the transition tag in party names." # Message tag permissions carbon.messagetags.color: "Allows the use of colors in messages." @@ -84,3 +90,6 @@ carbon.messagetags.insertion: "Allows the use of insertions in messages." carbon.messagetags.font: "Allows the use of fonts in messages." carbon.messagetags.reset: "Allows the use of the reset tag in messages." carbon.messagetags.newline: "Allows the use of the newline tag in messages." +carbon.messagetags.pride: "Allows the use of the pride tag in messages." +carbon.messagetags.shadow_color: "Allows the use of the shadow tag in messages." +carbon.messagetags.transition: "Allows the use of the transition tag in messages." \ No newline at end of file