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);
}