feat: add example event

Signed-off-by: ItsNeil17 <neil@willofsteel.me>
This commit is contained in:
ItsNeil17
2026-01-13 22:24:04 +05:30
parent 8590409614
commit d39ec0203e
4 changed files with 129 additions and 0 deletions

View File

@@ -1,8 +1,10 @@
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;
@@ -15,6 +17,7 @@ public class ExamplePlugin extends JavaPlugin {
@Override
protected void setup() {
this.getCommandRegistry().registerCommand(new ExampleCommand("example", "An example command"));
this.getEventRegistry().registerGlobal(PlayerReadyEvent.class, ExampleEvent::onPlayerReady);
}
@Override