Annotations
@IocBukkitCommandHandler
Specify this bean as a command executor. More info
property
description
value
The name of the command as specified in the plugin.yml
@IocBukkitCommandHandler("broadcast")
public class BroadcastCmd implements CommandExecutor {
private final MessageService messageService;
private final BroadcastingService broadcastingService;
public BroadcastCmd(MessageService messageService, BroadcastingService broadcastingService) {
this.messageService = messageService;
this.broadcastingService = broadcastingService;
}
@Override
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {
...
}
}@IocBukkitListener
Specify this bean as a Bukkit event listener.
@IocBukkitMessageListener
Specify this bean as a Bungee message listener.
property
Description
channel
The channel on which the listener should listen.
Last updated
Was this helpful?