13
0
geforkt von Mirrors/Velocity

Fix permission for velocity dump command (#1318)

Dieser Commit ist enthalten in:
booky10 2024-05-10 03:56:03 +02:00 committet von GitHub
Ursprung 1228f14742
Commit afd8b55fb5
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -74,7 +74,7 @@ public final class VelocityCommand {
@SuppressWarnings("checkstyle:MissingJavadocMethod") @SuppressWarnings("checkstyle:MissingJavadocMethod")
public static BrigadierCommand create(final VelocityServer server) { public static BrigadierCommand create(final VelocityServer server) {
final LiteralCommandNode<CommandSource> dump = BrigadierCommand.literalArgumentBuilder("dump") final LiteralCommandNode<CommandSource> dump = BrigadierCommand.literalArgumentBuilder("dump")
.requires(source -> source.getPermissionValue("velocity.command.plugins") == Tristate.TRUE) .requires(source -> source.getPermissionValue("velocity.command.dump") == Tristate.TRUE)
.executes(new Dump(server)) .executes(new Dump(server))
.build(); .build();
final LiteralCommandNode<CommandSource> heap = BrigadierCommand.literalArgumentBuilder("heap") final LiteralCommandNode<CommandSource> heap = BrigadierCommand.literalArgumentBuilder("heap")