1 package org.bukkit.command.defaults;
5 import org.apache.commons.lang.Validate;
6 import org.bukkit.Bukkit;
7 import org.bukkit.command.CommandSender;
8 import org.bukkit.entity.Player;
9 import org.bukkit.event.entity.EntityDamageEvent;
11 import com.google.common.collect.ImmutableList;
16 this.
description =
"Commits suicide, only usable as a player";
25 if (sender instanceof
Player) {
26 Player player = (Player) sender;
34 sender.
sendMessage(
"Ouch. That look like it hurt.");
36 sender.
sendMessage(
"You can only perform this command as a player");
44 Validate.notNull(sender,
"Sender cannot be null");
45 Validate.notNull(args,
"Arguments cannot be null");
46 Validate.notNull(alias,
"Alias cannot be null");
48 return ImmutableList.of();