From 6381d51950fe88e5075812099aece559c9629fec Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Sun, 11 Aug 2024 12:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=AE=8C=E6=88=90=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 4 ++-- pom.xml | 2 +- .../java/cn/lunadeer/essentialsd/events/ChatPrefixEvent.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 16fa5bf..8713d1d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -15,10 +15,10 @@ jobs: fetch-depth: 0 - name: "Set up Maven" uses: https://ssl.lunadeer.cn:14446/actions/setup-maven@v4 - - name: "Set up JDK 17" + - name: "Set up JDK 21" uses: https://ssl.lunadeer.cn:14446/actions/setup-java@v3 with: - java-version: '17' + java-version: '21' distribution: 'zulu' cache: maven - name: "Build with Maven" diff --git a/pom.xml b/pom.xml index 409bc8e..b17cd2d 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,7 @@ io.papermc.paper paper-api - 1.21.1-R0.1-SNAPSHOT + 1.21-R0.1-SNAPSHOT provided diff --git a/src/main/java/cn/lunadeer/essentialsd/events/ChatPrefixEvent.java b/src/main/java/cn/lunadeer/essentialsd/events/ChatPrefixEvent.java index 43b2f6d..a0230fe 100644 --- a/src/main/java/cn/lunadeer/essentialsd/events/ChatPrefixEvent.java +++ b/src/main/java/cn/lunadeer/essentialsd/events/ChatPrefixEvent.java @@ -11,7 +11,7 @@ public class ChatPrefixEvent implements Listener { @EventHandler public void onChat(AsyncPlayerChatEvent event) { event.setCancelled(true); - String formated = PlaceholderAPI.setPlaceholders(event.getPlayer(), EssentialsD.config.getPrefixFormat()); + String formated = PlaceholderAPI.setPlaceholders(event.getPlayer(), EssentialsD.config.getPrefixChatFormat()); formated += event.getMessage(); EssentialsD.instance.getServer().broadcastMessage(formated); }