From c8a5f567eb1f61b7ef7049a923fcd379f77b10ab Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 5 Jul 2026 11:54:07 +0200 Subject: [PATCH] Add StreamingCommand for UserPerm.PREFIX_YOUTUBER --- .../steamwar/velocitycore/commands/StreamingCommand.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/StreamingCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/StreamingCommand.java index 2e8f2078..b73b3f3d 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/StreamingCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/StreamingCommand.java @@ -19,6 +19,7 @@ package de.steamwar.velocitycore.commands; +import com.velocitypowered.api.command.SimpleCommand; import de.steamwar.command.SWCommand; import de.steamwar.linkage.EventMode; import de.steamwar.linkage.Linked; @@ -40,7 +41,13 @@ public class StreamingCommand extends SWCommand { } public StreamingCommand() { - super("streaming", UserPerm.TEAM); + super("streaming"); + } + + @Override + protected boolean hasPermission(SimpleCommand.Invocation invocation) { + SteamwarUser user = Chatter.of(invocation.source()).user(); + return user.hasPerm(UserPerm.TEAM) || user.hasPerm(UserPerm.PREFIX_YOUTUBER); } @Register