mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-20 15:35:08 +00:00
22 lines
551 B
Java
22 lines
551 B
Java
package com.earth2me.essentials.commands;
|
|
|
|
import com.earth2me.essentials.Util;
|
|
import org.bukkit.Server;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
public class Commanddeljail extends EssentialsCommand {
|
|
|
|
public Commanddeljail() {
|
|
super("deljail");
|
|
}
|
|
|
|
@Override
|
|
protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception {
|
|
if (args.length < 1)
|
|
{
|
|
throw new NotEnoughArgumentsException();
|
|
}
|
|
ess.getJail().delJail(args[0]);
|
|
sender.sendMessage(Util.format("deleteJail", args[0]));
|
|
}
|
|
}
|