From 061c29c35cd8e3601ed3736b972fa56c5a93d5eb Mon Sep 17 00:00:00 2001 From: ItsNeil17 Date: Tue, 13 Jan 2026 20:44:14 +0530 Subject: [PATCH] feat: initial Signed-off-by: ItsNeil17 --- .gitignore | 38 +++++++++++++++++++ .idea/.gitignore | 8 ++++ .idea/copilot.data.migration.ask2agent.xml | 6 +++ .idea/encodings.xml | 7 ++++ .idea/misc.xml | 14 +++++++ .idea/vcs.xml | 6 +++ pom.xml | 26 +++++++++++++ .../java/dev/hytalemodding/ExamplePlugin.java | 29 ++++++++++++++ .../commands/ExampleCommand.java | 19 ++++++++++ 9 files changed, 153 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/copilot.data.migration.ask2agent.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 pom.xml create mode 100644 src/main/java/dev/hytalemodding/ExamplePlugin.java create mode 100644 src/main/java/dev/hytalemodding/commands/ExampleCommand.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/copilot.data.migration.ask2agent.xml b/.idea/copilot.data.migration.ask2agent.xml new file mode 100644 index 0000000..1f2ea11 --- /dev/null +++ b/.idea/copilot.data.migration.ask2agent.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0c04b52 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..11008eb --- /dev/null +++ b/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + dev.hytalemodding + ExamplePlugin + 1.0-SNAPSHOT + + + 24 + 24 + UTF-8 + + + + + com.hypixel.hytale + HytaleServer-parent + 1.0-SNAPSHOT + provided + + + + \ No newline at end of file diff --git a/src/main/java/dev/hytalemodding/ExamplePlugin.java b/src/main/java/dev/hytalemodding/ExamplePlugin.java new file mode 100644 index 0000000..02065e4 --- /dev/null +++ b/src/main/java/dev/hytalemodding/ExamplePlugin.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/dev/hytalemodding/commands/ExampleCommand.java b/src/main/java/dev/hytalemodding/commands/ExampleCommand.java new file mode 100644 index 0000000..cf35a9c --- /dev/null +++ b/src/main/java/dev/hytalemodding/commands/ExampleCommand.java @@ -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!")); + } +}