    001package net.minecraft.command;
    002
    003import net.minecraft.entity.player.EntityPlayerMP;
    004import net.minecraft.util.DamageSource;
    005
    006public class CommandKill extends CommandBase
    007{
    008    public String getCommandName()
    009    {
    010        return "kill";
    011    }
    012
    013    /**
    014     * Return the required permission level for this command.
    015     */
    016    public int getRequiredPermissionLevel()
    017    {
    018        return 0;
    019    }
    020
    021    public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    022    {
    023        EntityPlayerMP entityplayermp = getCommandSenderAsPlayer(par1ICommandSender);
    024        entityplayermp.attackEntityFrom(DamageSource.outOfWorld, 1000);
    025        par1ICommandSender.sendChatToPlayer("Ouch. That looks like it hurt.");
    026    }
    027}