public class EventTest implements PluginListener {
/*
With the new system of events in JDAExpansion you will be able to declare any event with a custom name, you can repeat in the same
class any event and you can set the priority of execution of that event.
*/
@EventHandler(priority = EventPriority.MONITOR) //set the priority of the event, if it's not set, it will be NORMAL by default.
public void test(MessageReceivedEvent e) {
System.out.println(e.getMessage().getContentRaw());
}
@EventHandler
public void test2(MessageReceivedEvent e) {
System.out.println(e.getAuthor().getAsTag());
}
}