Package cofh.core.command

Source Code of cofh.core.command.CommandVersion

package cofh.core.command;

import cofh.CoFHCore;
import cofh.lib.util.helpers.StringHelper;

import java.util.List;

import net.minecraft.command.ICommandSender;
import net.minecraft.util.ChatComponentText;

public class CommandVersion implements ISubCommand {

  public static CommandVersion instance = new CommandVersion();

  /* ISubCommand */
  @Override
  public String getCommandName() {

    return "version";
  }

  @Override
  public void handleCommand(ICommandSender sender, String[] arguments) {

    sender.addChatMessage(new ChatComponentText(StringHelper.localize("info.cofh.command.version.0") + " " + CoFHCore.version + "."));
  }

  @Override
  public List<String> addTabCompletionOptions(ICommandSender sender, String[] args) {

    return null;
  }

}
TOP

Related Classes of cofh.core.command.CommandVersion

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.