Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-27 00:23:19 +01:00
Fix permission for velocity dump command (#1318)
Dieser Commit ist enthalten in:
Ursprung
1228f14742
Commit
afd8b55fb5
@ -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")
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren