From 14b2c56ca49f0e857810030be1d860e4cb6939b1 Mon Sep 17 00:00:00 2001 From: Piotr Zych <77621271+P1otrulla@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:23:49 +0200 Subject: [PATCH] GH-131 Added missing rainbow permission (#133) * Added missing resolver for rainbow * Added missing permissions in plugin.yml --- .../main/java/com/eternalcode/formatter/ChatHandlerImpl.java | 1 + chatformatter-paper-plugin/build.gradle.kts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/chatformatter-core/src/main/java/com/eternalcode/formatter/ChatHandlerImpl.java b/chatformatter-core/src/main/java/com/eternalcode/formatter/ChatHandlerImpl.java index 5f07052..764348e 100644 --- a/chatformatter-core/src/main/java/com/eternalcode/formatter/ChatHandlerImpl.java +++ b/chatformatter-core/src/main/java/com/eternalcode/formatter/ChatHandlerImpl.java @@ -64,6 +64,7 @@ class ChatHandlerImpl implements ChatHandler { .put("chatformatter.selector", StandardTags.selector()) .put("chatformatter.keybind", StandardTags.keybind()) .put("chatformatter.newline", StandardTags.newline()) + .put("chatformatter.rainbow", StandardTags.rainbow()) .build(); private static final GsonComponentSerializer GSON = GsonComponentSerializer.gson(); diff --git a/chatformatter-paper-plugin/build.gradle.kts b/chatformatter-paper-plugin/build.gradle.kts index 5f53799..da37e02 100644 --- a/chatformatter-paper-plugin/build.gradle.kts +++ b/chatformatter-paper-plugin/build.gradle.kts @@ -39,7 +39,8 @@ bukkit { "chatformatter.translatable", "chatformatter.selector", "chatformatter.keybind", - "chatformatter.newline" + "chatformatter.newline", + "chatformatter.rainbow" ) default = Default.OP } @@ -67,6 +68,7 @@ bukkit { register("chatformatter.selector") { default = Default.OP } register("chatformatter.keybind") { default = Default.OP } register("chatformatter.newline") { default = Default.OP } + register("chatformatter.rainbow") { default = Default.OP } register("chatformatter.color.*") { children = listOf(