20 lines
580 B
Java
20 lines
580 B
Java
|
|
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!"));
|
||
|
|
}
|
||
|
|
}
|