From d6bc5a53114f80caf8b74f7430d28d27b3edd58e Mon Sep 17 00:00:00 2001
From: Cyrilic <60803006+Cyrilic1209@users.noreply.github.com>
Date: Mon, 5 Aug 2024 11:34:21 +0800
Subject: [PATCH] update message receive distance to 50
---
README.md | 2 +-
pom.xml | 2 +-
src/main/java/top/sducraft/sducs/EVENTs/AsyncPlayerChat.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 907f16b..2978d0c 100644
--- a/README.md
+++ b/README.md
@@ -17,5 +17,5 @@ Base on Minecraft Spigot API 1.13
### 三、禁用命令“/msg”私聊
-### 四、发言内容距离可见(当前值为100)
+### 四、发言内容距离可见(当前值为50)
- [Team.秦始皇] ATRI(12.5) >> 芝士雪豹
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index d2d118c..ccbe824 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
top.sducraft
SDUCS
- 0.2.0.0
+ 0.2.0.1
jar
SDUCS
diff --git a/src/main/java/top/sducraft/sducs/EVENTs/AsyncPlayerChat.java b/src/main/java/top/sducraft/sducs/EVENTs/AsyncPlayerChat.java
index 26e79e3..75562c1 100644
--- a/src/main/java/top/sducraft/sducs/EVENTs/AsyncPlayerChat.java
+++ b/src/main/java/top/sducraft/sducs/EVENTs/AsyncPlayerChat.java
@@ -30,7 +30,7 @@ public void AsyncPlayerChat(AsyncPlayerChatEvent e){
Location loc =p.getLocation();
if (loc.getWorld().equals(player.getWorld())){
double d=loc.distance(player.getLocation());
- if (d <= 100){
+ if (d <= 50){
p.sendMessage(msg+ String.format("%.1f", d)+") >> " + message);
}
}