package net.minecraft.command;

import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraft.util.DamageSource;

public class CommandKill extends CommandBase
{
	private static final String __OBFID = "CL_00000570";

	public String getCommandName()
	{
		return "kill";
	}

	public int getRequiredPermissionLevel()
	{
		return 0;
	}

	public String getCommandUsage(ICommandSender par1ICommandSender)
	{
		return "commands.kill.usage";
	}

	public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
	{
		EntityPlayerMP entityplayermp = getCommandSenderAsPlayer(par1ICommandSender);
		entityplayermp.attackEntityFrom(DamageSource.outOfWorld, Float.MAX_VALUE);
		par1ICommandSender.addChatMessage(new ChatComponentTranslation("commands.kill.success", new Object[0]));
	}
}