package de.fanta.challenges.commands;
import de.fanta.challenges.utils.ChatUtil;
import de.iani.cubesideutils.bukkit.commands.SubCommand;
import de.iani.cubesideutils.commands.ArgsParser;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class LeaveCommand extends SubCommand {
public LeaveCommand() {
}
@Override
public boolean onCommand(CommandSender sender, Command command, String alias, String commandString, ArgsParser args) {
if (!(sender instanceof Player)) {
ChatUtil.sendErrorMessage(sender, "You are not a Player :>");
return true;
} else {
((Player) sender).performCommand("tt challenge");
}
return true;
}
}