feat: use instead of

Signed-off-by: ItsNeil17 <neil@willofsteel.me>

# Conflicts:
#	.idea/workspace.xml
This commit is contained in:
ItsNeil17
2026-01-14 17:33:45 +05:30
parent 60291752d6
commit 85a2475eeb
5 changed files with 28 additions and 5 deletions

6
.idea/copilot.data.migration.agent.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AgentMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

6
.idea/copilot.data.migration.ask.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AskMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

6
.idea/copilot.data.migration.edit.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EditMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

View File

@@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<properties> <properties>
<maven.compiler.source>24</maven.compiler.source> <maven.compiler.source>25</maven.compiler.source>
<maven.compiler.target>24</maven.compiler.target> <maven.compiler.target>25</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>

View File

@@ -1,19 +1,24 @@
package dev.hytalemodding.commands; package dev.hytalemodding.commands;
import com.hypixel.hytale.server.core.Message; 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.CommandContext;
import com.hypixel.hytale.server.core.command.system.basecommands.CommandBase;
import javax.annotation.Nonnull; 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) { public ExampleCommand(String name, String description) {
super(name, description); super(name, description);
} }
@Nullable
@Override @Override
protected void executeSync(@Nonnull CommandContext context) { protected CompletableFuture<Void> execute(@Nonnull CommandContext context) {
context.sendMessage(Message.raw("Hello from ExampleCommand!")); context.sendMessage(Message.raw("Hello from ExampleCommand!"));
return CompletableFuture.completedFuture(null);
} }
} }