Open dasavick opened 2 years ago
Real-life example:
@Executor
public BukkitResponse assign(CommandSender sender, @Arg Player target, @Arg QuestMeta quest, @Arg Option<QuestMeta> requires) {
//
}
@Executor(pattern = "assign @a * *")
public BukkitResponse assign_all(CommandSender sender, @Arg QuestMeta quest, @Arg QuestMeta requires) {
//
}
Commands having multiple patterns only work for the single something of the seemingly random pattern:
something <requiredValue> something1
something <requiredValue> something2
something <requiredValue> something3
Also, applicable for patterns with more arguments like:
something <requiredValue> something1 <required1> [optional1]
something <requiredValue> something2 <required1>