forked from SteamWar/SteamWar
Add StreamingCommand for streaming mode
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user