mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-09-27 22:57:36 +02:00
Add permission and descriptions to the debug command
This commit is contained in:
parent
5168bfcc05
commit
dfbbf7d690
@ -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<org.spongepowered.api.world.World> loc = ((Locatable) source).getLocation();
|
||||
|
Loading…
Reference in New Issue
Block a user