Skip to content

Commit

Permalink
Railgun release
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Feb 22, 2024
1 parent bfb16af commit 2035a3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/main/java/io/wdsj/asw/util/ContextUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
public class ContextUtils {
private static final ConcurrentHashMap<Player, Queue<String>> chatHistory = new ConcurrentHashMap<>();

/**
* Add player message to history
*/
public static void addMessage(Player player, String message) {
chatHistory.computeIfAbsent(player, k -> new LinkedList<>());
Queue<String> history = chatHistory.get(player);
Expand Down

0 comments on commit 2035a3b

Please sign in to comment.