blob: 9938b025c33df39b5ff3b463a46b657ed4968378 (
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.getLocation());
user.sendMessage(_("jailSet", Util.sanitizeString(args[0])));
}
}
|