package online.mineroo.velocity.commands; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.command.SimpleCommand; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.format.NamedTextColor; public class MainCommand implements SimpleCommand { @Override public void execute(Invocation invocation) { String[] args = invocation.arguments(); if (args.length == 0) { sendHelp(invocation.source()); } } public void sendHelp(CommandSource source) { source.sendMessage(Component.text("=== # @Mineroo # ===", NamedTextColor.AQUA)); source.sendMessage(Component.text(" /mineroo bind - Start to bind server", NamedTextColor.YELLOW)); source.sendMessage(Component.text(" /mineroo reload - Reload config", NamedTextColor.YELLOW)); source.sendMessage(Component.text("=== mineroo.online ===", NamedTextColor.AQUA)); } }