Skip to content

Commit

Permalink
Fix permission for velocity dump command (PaperMC#1318)
Browse files Browse the repository at this point in the history
booky10 authored May 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1228f14 commit afd8b55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ public final class VelocityCommand {
@SuppressWarnings("checkstyle:MissingJavadocMethod")
public static BrigadierCommand create(final VelocityServer server) {
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))
.build();
final LiteralCommandNode<CommandSource> heap = BrigadierCommand.literalArgumentBuilder("heap")

0 comments on commit afd8b55

Please sign in to comment.