Skip to content

Commit

Permalink
Version Archaic
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Mar 20, 2024
1 parent ea56463 commit 6c988b3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.wdsj</groupId>
<artifactId>AdvancedSensitiveWords</artifactId>
<version>Horizon</version>
<version>Archaic</version>
<packaging>jar</packaging>

<name>AdvancedSensitiveWords</name>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/wdsj/asw/listener/ChatListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

import static io.wdsj.asw.AdvancedSensitiveWords.*;
import static io.wdsj.asw.util.TimingUtils.addProcessStatistic;
import static io.wdsj.asw.util.Utils.*;
import static io.wdsj.asw.util.Utils.getPlayerIp;
import static io.wdsj.asw.util.Utils.messagesFilteredNum;

@SuppressWarnings("unused")
public class ChatListener implements Listener {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/wdsj/asw/listener/CommandListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.List;

import static io.wdsj.asw.AdvancedSensitiveWords.*;
import static io.wdsj.asw.AdvancedSensitiveWords.isCslAvailable;
import static io.wdsj.asw.util.Utils.*;

@SuppressWarnings("unused")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/wdsj/asw/setting/PluginSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class PluginSettings implements SettingsHolder {
public static final Property<Boolean> ENABLE_PLAYER_NAME_CHECK = newProperty("Plugin.enablePlayerNameCheck", false);
@Comment({"*是否启用玩家物品检测",
"*Whether to enable player item check"})
public static final Property<Boolean> ENABLE_PLAYER_ITEM_CHECK = newProperty("Plugin.enableItemCheck", true);
public static final Property<Boolean> ENABLE_PLAYER_ITEM_CHECK = newProperty("Plugin.enableItemCheck", false);

@Comment({"是否启用API接口(非必要请勿关闭)",
"Whether to enable API (do not disable unless necessary)"})
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/wdsj/asw/util/context/ChatContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static void addMessage(Player player, String message) {
chatHistory.computeIfAbsent(player, k -> new LinkedList<>());
Deque<String> history = chatHistory.get(player);
while (history.size() >= settingsManager.getProperty(PluginSettings.CHAT_CONTEXT_MAX_SIZE)) {
history.poll();
history.pollFirst();
}
history.offerLast(message.trim());
}
Expand Down

0 comments on commit 6c988b3

Please sign in to comment.