mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Current progress on Conditions, not done yet - #58
This commit is contained in:
@@ -27,6 +27,7 @@ import co.aikar.commands.BaseCommand;
|
||||
import co.aikar.commands.annotation.CommandAlias;
|
||||
import co.aikar.commands.annotation.CommandCompletion;
|
||||
import co.aikar.commands.annotation.CommandPermission;
|
||||
import co.aikar.commands.annotation.Conditions;
|
||||
import co.aikar.commands.annotation.Default;
|
||||
import co.aikar.commands.annotation.Optional;
|
||||
import co.aikar.commands.annotation.Subcommand;
|
||||
@@ -48,6 +49,12 @@ public class SomeCommand extends BaseCommand {
|
||||
sender.sendMessage("You got an object of type: " + someObject.getClass().getName() + " with a value of: " + someObject.getValue());
|
||||
}
|
||||
|
||||
@Subcommand("condition")
|
||||
@Conditions("condition=1")
|
||||
public void onCondition(CommandSender sender) {
|
||||
|
||||
}
|
||||
|
||||
// /acf admin - requires permission some.perm
|
||||
// May also be accessed with /acfa or /acfadmin
|
||||
@Subcommand("admin")
|
||||
|
||||
Reference in New Issue
Block a user