feat: initial

Signed-off-by: ItsNeil17 <neil@willofsteel.me>
This commit is contained in:
ItsNeil17
2026-01-13 20:44:14 +05:30
commit 061c29c35c
9 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package dev.hytalemodding;
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
import dev.hytalemodding.commands.ExampleCommand;
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"));
}
@Override
protected void start() {
super.start();
}
@Override
protected void shutdown() {
super.shutdown();
}
}

View File

@@ -0,0 +1,19 @@
package dev.hytalemodding.commands;
import com.hypixel.hytale.server.core.Message;
import com.hypixel.hytale.server.core.command.system.CommandContext;
import com.hypixel.hytale.server.core.command.system.basecommands.CommandBase;
import javax.annotation.Nonnull;
public class ExampleCommand extends CommandBase {
public ExampleCommand(String name, String description) {
super(name, description);
}
@Override
protected void executeSync(@Nonnull CommandContext context) {
context.sendMessage(Message.raw("Hello from ExampleCommand!"));
}
}