package dev.hytalemodding; import com.hypixel.hytale.server.core.event.events.player.PlayerReadyEvent; import com.hypixel.hytale.server.core.plugin.JavaPlugin; import com.hypixel.hytale.server.core.plugin.JavaPluginInit; import dev.hytalemodding.commands.ExampleCommand; import dev.hytalemodding.events.ExampleEvent; import javax.annotation.Nonnull; public class ExamplePlugin extends JavaPlugin { public ExamplePlugin(@Nonnull JavaPluginInit init) { super(init); } @Override protected void setup() { this.getCommandRegistry().registerCommand(new ExampleCommand("example", "An example command")); this.getEventRegistry().registerGlobal(PlayerReadyEvent.class, ExampleEvent::onPlayerReady); } }