TF-EssentialsX/Essentials/src/com/earth2me/essentials/commands/Commanddelwarp.java

26 lines
575 B
Java
Raw Normal View History

package com.earth2me.essentials.commands;
2011-11-18 17:42:26 +00:00
import com.earth2me.essentials.Util;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
public class Commanddelwarp extends EssentialsCommand
{
public Commanddelwarp()
{
super("delwarp");
}
@Override
2011-11-18 12:06:59 +00:00
public void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
ess.getWarps().delWarp(args[0]);
sender.sendMessage(Util.format("deleteWarp", args[0]));
}
}