forked from SteamWar/SteamWar
Add StreamingCommand for streaming mode
This commit is contained in:
@@ -623,6 +623,7 @@ SERVER_WORLD_ERROR=§cCreating the world failed.
|
||||
WHOIS_USAGE=§c/whois [player/ID] [-a/-m]
|
||||
WHOIS_USERNAME=§7Username§8: §e{0}
|
||||
WHOIS_PREFIX=§7Chat-Prefix§8: {0}
|
||||
WHOIS_STREAMING=§7Streaming§8: §e{0}
|
||||
WHOIS_UUID=§7UUID§8: §e{0}
|
||||
WHOIS_UUID_HOVER=§eCopy UUID
|
||||
WHOIS_ID=§7ID§8: §e{0}
|
||||
@@ -735,6 +736,10 @@ INV_PAGE_NEXT=§{0}Seite vor
|
||||
#VersionAnnouncer
|
||||
SERVER_VERSION=§7This server runs on Minecraft version §e{0}
|
||||
|
||||
#StreamingCommand
|
||||
STREAMING_ENABLE=§7Streaming mode §aenabled§8.
|
||||
STREAMING_DISABLE=§7Streaming mode §cdisabled§8.
|
||||
|
||||
#Discord
|
||||
DC_UNLINKED=For this action your Discord account has to be linked to your Minecraft account. To link your accounts go onto the SteamWar Discord to the `regeln-infos` Channel and click on `Minecraft Verknüpfen`.
|
||||
DC_TITLE_SCHEMINFO=Schematic Info
|
||||
|
||||
@@ -683,6 +683,10 @@ INV_PAGE_NEXT=§{0}Next page
|
||||
#VersionAnnouncer
|
||||
SERVER_VERSION=§7Dieser Server läuft auf Minecraft-Version §e{0}
|
||||
|
||||
#StreamingCommand
|
||||
STREAMING_ENABLE=§7Streaming Modus §aaktiviert§8.
|
||||
STREAMING_DISABLE=§7Streaming Modus §cdeaktiviert§8.
|
||||
|
||||
#Discord
|
||||
DC_UNLINKED=Für diese Aktion muss dein Minecraftaccount mit deinem Discordaccount verknüpft sein, gehe dazu auf dem SteamWar-Discord in den `regeln-infos` Channel und Klicke auf `Minecraft Verknüpfen`.
|
||||
DC_TITLE_SCHEMINFO=Schematicinfo
|
||||
|
||||
@@ -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