コード例 #1
0
 @CommandRequirements()
 @Command(
     aliases = "blacksmith",
     usage = "help",
     desc = "view the blacksmith help page",
     modifiers = "help",
     min = 1,
     max = 1)
 @CommandPermissions("blacksmith.use.help")
 @ServerCommand()
 public static void blacksmithHelp(CommandContext args, CommandSender sender, HumanNPC npc) {
   HelpUtils.sendBlacksmithHelp(sender);
 }
コード例 #2
0
ファイル: BasicCommands.java プロジェクト: BeYkeRYkt/Citizens
 @CommandRequirements()
 @Command(
     aliases = "npc",
     usage = "help (page)",
     desc = "view the Basic NPC help page",
     modifiers = "help",
     min = 1,
     max = 2)
 @CommandPermissions("basic.use.help")
 @ServerCommand()
 public static void npcHelp(CommandContext args, CommandSender sender, HumanNPC npc) {
   int page = 1;
   if (args.argsLength() == 2) {
     page = Integer.parseInt(args.getString(1));
   }
   HelpUtils.sendBasicHelpPage(sender, page);
 }