mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 14:21:56 +00:00
add some more example
This commit is contained in:
@@ -40,8 +40,7 @@ import org.bukkit.entity.Player;
|
||||
@CommandAlias("acf|somecommand|sc|somcom")
|
||||
public class SomeCommand extends BaseCommand {
|
||||
|
||||
@Subcommand("test4")
|
||||
@CommandAlias("acftest|acft")
|
||||
@CommandAlias("%testcmd")
|
||||
public void onCommand(CommandSender sender, SomeObject someObject) {
|
||||
sender.sendMessage("You got an object of type: " + someObject.getClass().getName() + " with a value of: " + someObject.getValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user