blob: d48421f7e7a8276746e86f9fb70dfa07c8dc9f47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package net.ess3.commands;
import static net.ess3.I18n._;
import net.ess3.api.IUser;
import net.ess3.utils.Util;
public class Commandsetjail extends EssentialsCommand
{
@Override
public void run(final IUser user, final String commandLabel, final String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
ess.getJails().setJail(args[0], user.getPlayer().getLocation());
user.sendMessage(_("Jail {0} has been set.", Util.sanitizeString(args[0])));
}
}
|