예제 #1
0
파일: Cmd.java 프로젝트: Rojoss/Boxx
 /**
  * Construct a new command with the given name and aliases.
  *
  * @param name The name/label of the command.
  * @param aliases Aliases for the command.
  */
 public Cmd(String name, String... aliases) {
   super(name, "", "", Arrays.asList(aliases));
   setPermission("");
   setDescription("");
 }
예제 #2
0
파일: Cmd.java 프로젝트: Rojoss/Boxx
 /**
  * Add one or more {@link SenderType}s on the sender blacklist.
  *
  * <p>The added sender types won't be able to execute the command.
  *
  * @param type One or more {@link SenderType}s to be blacklisted.
  */
 public void blacklistSenders(SenderType... type) {
   senderBlacklist.addAll(Arrays.asList(type));
 }