Add StreamingCommand for UserPerm.PREFIX_YOUTUBER

This commit is contained in:
2026-07-05 11:54:07 +02:00
parent 47fb4da85b
commit c8a5f567eb
@@ -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