Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix: みんなどこの通知済み確認処理削除 (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Jun 8, 2022
1 parent 092c7b8 commit 398004a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/java/com/jaoafa/mymaid4/event/Event_WhereAreYou.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
import org.bukkit.event.Listener;
import org.bukkit.scheduler.BukkitRunnable;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class Event_WhereAreYou extends MyMaidLibrary implements Listener, EventPremise {
List<List<String>> whereAreYou = List.of(
Expand All @@ -50,7 +48,6 @@ public class Event_WhereAreYou extends MyMaidLibrary implements Listener, EventP
"doko"
)
);
List<UUID> notified = new ArrayList<>();

@Override
public String description() {
Expand All @@ -63,11 +60,6 @@ public void onChatWhereAreYou(AsyncChatEvent event) {
Component component = event.message();
String message = PlainTextComponentSerializer.plainText().serialize(component);

if (notified.contains(player.getUniqueId())) {
return;
}
notified.add(player.getUniqueId());

// 各項目のいずれか、そのうちのすべてに一致する場合
if (whereAreYou.stream().noneMatch(list -> list.stream().allMatch(message::contains))) {
return;
Expand Down

0 comments on commit 398004a

Please sign in to comment.