Add permission and descriptions to the debug command

This commit is contained in:
Blue (Lukas Rieger) 2020-01-08 00:42:00 +01:00
parent 5168bfcc05
commit dfbbf7d690
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ public class Commands {
public CommandSpec createRootCommand() {
CommandSpec debugCommand = CommandSpec.builder()
.permission("bluemap.debug")
.description(Text.of("Prints some debug info"))
.extendedDescription(Text.of("Prints some information about how bluemap sees the blocks at and below your position"))
.executor((source, args) -> {
if (source instanceof Locatable) {
Location<org.spongepowered.api.world.World> loc = ((Locatable) source).getLocation();