summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/commands/Commandsuicide.java
blob: c9598ee3ea053f3fd39f43361e6663e26d1739c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package net.ess3.commands;

import static net.ess3.I18n._;
import net.ess3.api.IUser;


public class Commandsuicide extends EssentialsCommand
{
	@Override
	public void run(final IUser user, final String commandLabel, final String[] args) throws Exception
	{
		ess.getPlugin().callSuicideEvent(user.getBase());
		user.damage(Short.MAX_VALUE);
		user.sendMessage(_("suicideMessage"));
		user.setDisplayNick();
		ess.broadcastMessage(user,_("suicideSuccess", user.getDisplayName()));		
	}
}