I’ve been trying to create a local channel using different methods. At this moment I’m using this one:
Code
event.setChannel(MessageChannel.fixed(player.getNearbyEntities(radius)
.stream()
.filter(Player.class::isInstance)
.map(Player.class::cast)
.collect(Collectors.toList())));
But I found a problem. When many objects like XP bottles and mobs are in a radius than I’ve pointed and you’re flying another way and then turning back, messages can’t be sent or channel can’t be created. I’ve tried many methods but problem remained.