Esempio n. 1
0
File: Cmd.java Progetto: 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("");
 }
Esempio n. 2
0
File: Cmd.java Progetto: 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));
 }