Advertisement
Exception_Prototype

CommandSpec

Apr 25th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.23 KB | None | 0 0
  1. CommandSpec.builder()
  2.                 .description(Text.of("Teleport to a warp location"))
  3.                 .extendedDescription(Text.of("Teleports you to the location of the specified warp."))
  4.                 .permission("warps.command.warp")
  5.                 .arguments(new WarpCommandElement(Text.of("warp")))
  6.                 .executor(new WarpExecutor())
  7.                
  8.                 .child(helpCommand, "help", "h", "?")
  9.                 .child(createPublicWarpCommand, "set", "create")
  10.                 .child(createPrivateWarpCommand, "pset", "pcreate")
  11.                 .child(deleteWarpCommand, "delete", "remove")
  12.  
  13.                 .child(toPublicWarpCommand, "public")
  14.                 .child(toPrivateWarpCommand, "private")
  15.  
  16.                 .child(assetsCommand, "assets", "pinfo")
  17.                 .child(topWarpCommand, "top")
  18.  
  19.                 .child(invitePlayerToWarpCommand, "invite") // /warp invite <warp> <player>
  20.                 .child(uninvitePlayerFromWarpCommand, "uninvite") // /warp uninvite <warp> <player>
  21.  
  22.                 .child(blacklistCommand, "blacklist", "bl") //todo: blacklist
  23.  
  24.                 .child(updateWarpCommand, "update")
  25.                 .child(infoWarpCommand, "info")
  26.                 .build();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement