From dfbbf7d6901cfaba7fb0acbfd29749c904fae9f2 Mon Sep 17 00:00:00 2001 From: "Blue (Lukas Rieger)" Date: Wed, 8 Jan 2020 00:42:00 +0100 Subject: [PATCH] Add permission and descriptions to the debug command --- .../src/main/java/de/bluecolored/bluemap/sponge/Commands.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BlueMapSponge/src/main/java/de/bluecolored/bluemap/sponge/Commands.java b/BlueMapSponge/src/main/java/de/bluecolored/bluemap/sponge/Commands.java index 2641bafd..d7d7221e 100644 --- a/BlueMapSponge/src/main/java/de/bluecolored/bluemap/sponge/Commands.java +++ b/BlueMapSponge/src/main/java/de/bluecolored/bluemap/sponge/Commands.java @@ -46,6 +46,9 @@ public Commands(SpongePlugin plugin) { 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 loc = ((Locatable) source).getLocation();