Skip to content

Commit 8a44eec

Browse files
Added description to commands
1 parent e5f3a7d commit 8a44eec

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/main/java/me/general_breddok/blockdisplaycreator/command/capi/BlockDisplayCreatorCAPICommand.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public class BlockDisplayCreatorCAPICommand {
5353
@Getter
5454
List<AbstractCustomBlockTooltip> abstractCustomBlockTooltips = new ArrayList<>();
5555
Map<String, List<String>> interactionSuggestions = new HashMap<>();
56-
@Getter
5756
Map<String, List<String>> collisionSuggestions = new HashMap<>();
5857

5958
public BlockDisplayCreatorCAPICommand(BlockDisplayCreator plugin) {
@@ -63,6 +62,13 @@ public BlockDisplayCreatorCAPICommand(BlockDisplayCreator plugin) {
6362
public void register() {
6463
new CommandTree("blockdisplaycreator")
6564
.withAliases("bdc")
65+
.withShortDescription("Basic BlockDisplayCreator commands")
66+
.withFullDescription("BlockDisplayCreator commands for managing custom blocks and their configurations.")
67+
.withUsage(
68+
"/bdc custom-block {give|editfile} <block> ...",
69+
"/bdc reload [block]",
70+
"/bdc killcbentities <position1> <position2>"
71+
)
6672
.then(
6773
new LiteralArgument("reload")
6874
.withPermission(DefaultPermissions.BDC.Command.RELOAD)

src/main/java/me/general_breddok/blockdisplaycreator/command/capi/CustomBlockGiveCAPICommand.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public void register() {
2929
new CommandAPICommand("custom-block")
3030
.withPermission("bdc.command.custom-block")
3131
.withAliases("cb")
32+
.withShortDescription("Gives a custom block to a player")
33+
.withFullDescription("Gives a custom block to a player. You can specify the receiver and the amount of blocks to give. ")
34+
.withUsage(
35+
"/cb <block> [receiver] [amount]"
36+
)
3237
.withArguments(
3338
new StringArgument("block")
3439
.replaceSuggestions(this.plugin.getBdcCommand().getCustomBlockSuggestions())

0 commit comments

Comments
 (0)