mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-13 04:36:44 +00:00
25 lines
580 B
Java
25 lines
580 B
Java
package com.earth2me.essentials.commands;
|
|
|
|
import static com.earth2me.essentials.I18n._;
|
|
import org.bukkit.Server;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
|
|
public class Commanddeljail extends EssentialsCommand
|
|
{
|
|
public Commanddeljail()
|
|
{
|
|
super("deljail");
|
|
}
|
|
|
|
@Override
|
|
protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
|
{
|
|
if (args.length < 1)
|
|
{
|
|
throw new NotEnoughArgumentsException();
|
|
}
|
|
ess.getJails().removeJail(args[0]);
|
|
sender.sendMessage(_("deleteJail", args[0]));
|
|
}
|
|
}
|