Skip to content

Commit dfbbf7d

Browse files
committed
Add permission and descriptions to the debug command
1 parent 5168bfc commit dfbbf7d

File tree

1 file changed

+3
-0
lines changed
  • BlueMapSponge/src/main/java/de/bluecolored/bluemap/sponge

1 file changed

+3
-0
lines changed

BlueMapSponge/src/main/java/de/bluecolored/bluemap/sponge/Commands.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public Commands(SpongePlugin plugin) {
4646
public CommandSpec createRootCommand() {
4747

4848
CommandSpec debugCommand = CommandSpec.builder()
49+
.permission("bluemap.debug")
50+
.description(Text.of("Prints some debug info"))
51+
.extendedDescription(Text.of("Prints some information about how bluemap sees the blocks at and below your position"))
4952
.executor((source, args) -> {
5053
if (source instanceof Locatable) {
5154
Location<org.spongepowered.api.world.World> loc = ((Locatable) source).getLocation();

0 commit comments

Comments
 (0)