mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-05 22:09:44 +00:00
26 lines
553 B
Java
26 lines
553 B
Java
package com.earth2me.essentials.commands;
|
|
|
|
import com.earth2me.essentials.User;
|
|
import com.earth2me.essentials.Util;
|
|
import org.bukkit.Server;
|
|
|
|
|
|
public class Commandsetjail extends EssentialsCommand
|
|
{
|
|
public Commandsetjail()
|
|
{
|
|
super("setjail");
|
|
}
|
|
|
|
@Override
|
|
public void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
|
{
|
|
if (args.length < 1)
|
|
{
|
|
throw new NotEnoughArgumentsException();
|
|
}
|
|
ess.getJail().setJail(user.getLocation(), args[0]);
|
|
user.sendMessage(Util.format("jailSet",args[0]));
|
|
|
|
}
|
|
}
|