Skip to content

Commit

Permalink
Fix permission for velocity dump command (PaperMC#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 authored and qyl27 committed May 11, 2024
1 parent 6853f67 commit 5875d71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5875d71

Please sign in to comment.