修改快速返回冷却时间+移除广告机挂机消息

This commit is contained in:
2026-07-05 18:05:40 +08:00
parent 3118f9bd1a
commit ba0b7fb879
2 changed files with 2 additions and 2 deletions
@@ -1259,7 +1259,7 @@ public class ChatFilterManager {
long idleThreshold = 5 * 60 * 1000L; // 5分钟
org.bukkit.Bukkit.getOnlinePlayers().forEach(p -> {
if (isPlayerIdle(p.getName(), idleThreshold)) {
p.sendMessage("§c[系统] 您已连续空闲超过5分钟,即将被踢出");
// 不再发送空闲消息,仅刷新计时
playerLastActiveTime.put(p.getName(), System.currentTimeMillis()); // 刷新计时
}
});
+1 -1
View File
@@ -39,7 +39,7 @@ public class QuickBack implements Listener, CommandExecutor, TabCompleter {
// ★ 定时器引用(用于 shutdown 时取消)
private BukkitTask scheduleTask = null;
private static final long COOLDOWN_MS = 5 * 60 * 1000; // 5分钟冷却
private static final long COOLDOWN_MS = 10 * 1000; // 10秒冷却
public QuickBack(Main plugin) {
this.plugin = plugin;