player is included, ready to merge

This commit is contained in:
Olzie-12 committed 2022-12-15 21:40:47 +00:00
1 parent ce61e1d9c7
commit 478457e146
1 file changed
+4 -2
@@ -20,10 +20,12 @@
package net.draycia.carbon.common.listeners;
import com.google.inject.Inject;
import java.util.stream.Collectors;
import net.draycia.carbon.api.CarbonChat;
import net.draycia.carbon.api.events.CarbonChatEvent;
import net.draycia.carbon.api.users.CarbonPlayer;
import net.draycia.carbon.common.messages.CarbonMessages;
import net.kyori.adventure.identity.Identity;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.framework.qual.DefaultQualifier;
@@ -76,8 +78,8 @@ public class RadiusListener {
return false;
});
}
if (!event.recipients().isEmpty()) return;
carbonChat.logger().info(event.recipients().stream().map(x -> x.get(Identity.NAME).orElse(null)).collect(Collectors.joining()));
if (event.recipients().size() > 1) return;
carbonMessages.emptyRecipients(event.sender());
});