Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Mar 9, 2024
1 parent 338441a commit eab48b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/io/wdsj/asw/setting/PluginSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public void registerComments(CommentsConfiguration conf) {
conf.setComment("Sign", "告示牌检测配置");
conf.setComment("Anvil", "铁砧重命名检测配置");
conf.setComment("Name", "玩家名检测配置");
conf.setComment("Item", "物品检测配置");
}

// Do not instantiate.
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 @@ -20,7 +20,7 @@ public static void addMessage(Player player, String message) {
while (history.size() >= settingsManager.getProperty(PluginSettings.CHAT_CONTEXT_MAX_SIZE)) {
history.poll();
}
history.offer(message.trim());
history.offerLast(message.trim());
}

public static Deque<String> getHistory(Player player) {
Expand Down

0 comments on commit eab48b9

Please sign in to comment.