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); } + }