Skip to content
Permalink
Browse files

Added a CBID command to get the CBID

  • Loading branch information
me4502 committed Dec 20, 2019
1 parent df4dcf6 commit bd77544a99873d6aa6d64f3c60b2e80df6f06f88
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/main/java/com/sk89q/craftbook/bukkit/commands/TopLevelCommands.java
@@ -128,6 +128,14 @@ public void itemInfo(CommandContext context, CommandSender sender) throws Comman
}
}

@Command(aliases = {"cbid", "craftbookid"}, desc = "Gets the players CBID.")
public void cbid(CommandContext context, CommandSender sender) throws CommandException {
if(!(sender instanceof Player)) {
throw new CommandException("Only players can use this command!");
}
sender.sendMessage("CraftBook ID: " + CraftBookPlugin.inst().wrapPlayer((Player) sender).getCraftBookId());
}

@Command(aliases = {"report"}, desc = "Writes a report on CraftBook", flags = "pi", max = 0)
@CommandPermissions({"craftbook.report"})
public void report(CommandContext args, final CommandSender sender) throws CommandException {

0 comments on commit bd77544

Please sign in to comment.
You can’t perform that action at this time.