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

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


public class Commandback extends EssentialsCommand
{
	@Override
	protected void run(final IUser user, final String commandLabel, final String[] args) throws Exception
	{
		final Trade charge = new Trade(commandName, ess);
		charge.isAffordableFor(user);
		user.sendMessage(_("Returning to previous location."));
		user.getTeleport().back(charge);
		throw new NoChargeException();
	}
}