package world.bentobox.bentobox.api.commands.admin.deaths;

import java.util.List;

import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.user.User;

/**
 * @author Poslovitch
 */
public class AdminDeathsCommand extends CompositeCommand {

    public AdminDeathsCommand(CompositeCommand parent) {
        super(parent, "deaths");
    }

    @Override
    public void setup() {
        setPermission("admin.deaths");
        setDescription("commands.admin.deaths.description");

        new AdminDeathsResetCommand(this);
        new AdminDeathsSetCommand(this);
        new AdminDeathsAddCommand(this);
        new AdminDeathsRemoveCommand(this);
    }

    @Override
    public boolean execute(User user, String label, List<String> args) {
        showHelp(this, user);
        return true;
    }
}
