This utility allows you to statically and dynamically subscribe, listen, and react to events.
public class ExamplePlugin extends AluminaPlugin { @Override public void load() { } @Override public void enable() { Events.listen(PlayerJoinEvent.class, event -> { Player player = event.getPlayer(); player.sendMessage(Component.text("Welcome to the server! :)").color(NamedTextColor.GREEN)); }); } @Override public void disable() { } }
Last updated 6 months ago