Add StreamingCommand for streaming mode

This commit is contained in:
2025-09-28 13:09:07 +02:00
parent 21d628b338
commit 1231fa5c47
7 changed files with 85 additions and 3 deletions
@@ -28,6 +28,7 @@ import de.steamwar.persistent.Subserver;
import de.steamwar.sql.SteamwarUser;
import de.steamwar.sql.UserPerm;
import de.steamwar.velocitycore.VelocityCore;
import de.steamwar.velocitycore.commands.StreamingCommand;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.event.ClickEvent;
import net.kyori.adventure.text.event.HoverEvent;
@@ -68,7 +69,9 @@ public interface Chatter {
}
static ChatterGroup serverteam() {
return new ChatterGroup(allStream().filter(player -> player.user().hasPerm(UserPerm.TEAM)));
return new ChatterGroup(allStream()
.filter(player -> player.user().hasPerm(UserPerm.TEAM))
.filter(StreamingCommand::isNotStreaming));
}
SteamwarUser user();