From 85a2475eeb226b8e06adc68e9fe580ebd496183f Mon Sep 17 00:00:00 2001 From: ItsNeil17 Date: Wed, 14 Jan 2026 17:33:45 +0530 Subject: [PATCH] feat: use instead of Signed-off-by: ItsNeil17 # Conflicts: # .idea/workspace.xml --- .idea/copilot.data.migration.agent.xml | 6 ++++++ .idea/copilot.data.migration.ask.xml | 6 ++++++ .idea/copilot.data.migration.edit.xml | 6 ++++++ pom.xml | 4 ++-- .../dev/hytalemodding/commands/ExampleCommand.java | 11 ++++++++--- 5 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .idea/copilot.data.migration.agent.xml create mode 100644 .idea/copilot.data.migration.ask.xml create mode 100644 .idea/copilot.data.migration.edit.xml diff --git a/.idea/copilot.data.migration.agent.xml b/.idea/copilot.data.migration.agent.xml new file mode 100644 index 0000000..4ea72a9 --- /dev/null +++ b/.idea/copilot.data.migration.agent.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask.xml b/.idea/copilot.data.migration.ask.xml new file mode 100644 index 0000000..7ef04e2 --- /dev/null +++ b/.idea/copilot.data.migration.ask.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.edit.xml b/.idea/copilot.data.migration.edit.xml new file mode 100644 index 0000000..8648f94 --- /dev/null +++ b/.idea/copilot.data.migration.edit.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 11008eb..d1e5db7 100644 --- a/pom.xml +++ b/pom.xml @@ -9,8 +9,8 @@ 1.0-SNAPSHOT - 24 - 24 + 25 + 25 UTF-8 diff --git a/src/main/java/dev/hytalemodding/commands/ExampleCommand.java b/src/main/java/dev/hytalemodding/commands/ExampleCommand.java index cf35a9c..3e818d7 100644 --- a/src/main/java/dev/hytalemodding/commands/ExampleCommand.java +++ b/src/main/java/dev/hytalemodding/commands/ExampleCommand.java @@ -1,19 +1,24 @@ package dev.hytalemodding.commands; import com.hypixel.hytale.server.core.Message; +import com.hypixel.hytale.server.core.command.system.AbstractCommand; import com.hypixel.hytale.server.core.command.system.CommandContext; -import com.hypixel.hytale.server.core.command.system.basecommands.CommandBase; import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import java.util.concurrent.CompletableFuture; -public class ExampleCommand extends CommandBase { +public class ExampleCommand extends AbstractCommand { public ExampleCommand(String name, String description) { super(name, description); } + @Nullable @Override - protected void executeSync(@Nonnull CommandContext context) { + protected CompletableFuture execute(@Nonnull CommandContext context) { context.sendMessage(Message.raw("Hello from ExampleCommand!")); + return CompletableFuture.completedFuture(null); } + }