summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/commands/Commandback.java
blob: 92755dd210c4588dd097ef3ce35d9ae5953bc442 (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(_("§6Returning to previous location."));
		user.getTeleport().back(charge);
		throw new NoChargeException();
	}
}