2026-01-13 20:44:14 +05:30
|
|
|
package dev.hytalemodding;
|
|
|
|
|
|
2026-01-13 22:24:04 +05:30
|
|
|
import com.hypixel.hytale.server.core.event.events.player.PlayerReadyEvent;
|
2026-01-13 20:44:14 +05:30
|
|
|
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
|
|
|
|
|
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
|
|
|
|
|
import dev.hytalemodding.commands.ExampleCommand;
|
2026-01-13 22:24:04 +05:30
|
|
|
import dev.hytalemodding.events.ExampleEvent;
|
2026-01-13 20:44:14 +05:30
|
|
|
|
|
|
|
|
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"));
|
2026-01-13 22:24:04 +05:30
|
|
|
this.getEventRegistry().registerGlobal(PlayerReadyEvent.class, ExampleEvent::onPlayerReady);
|
2026-01-13 20:44:14 +05:30
|
|
|
}
|
|
|
|
|
}
|