// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.command.system.basecommands;

import javax.annotation.Nullable;
import java.util.concurrent.CompletableFuture;
import com.hypixel.hytale.server.core.command.system.CommandContext;
import javax.annotation.Nonnull;
import com.hypixel.hytale.server.core.command.system.AbstractCommand;

public abstract class CommandBase extends AbstractCommand
{
    public CommandBase(@Nonnull final String name, @Nonnull final String description) {
        super(name, description);
    }
    
    public CommandBase(@Nonnull final String name, @Nonnull final String description, final boolean requiresConfirmation) {
        super(name, description, requiresConfirmation);
    }
    
    public CommandBase(@Nonnull final String description) {
        super(description);
    }
    
    @Nullable
    @Override
    protected final CompletableFuture<Void> execute(@Nonnull final CommandContext context) {
        this.executeSync(context);
        return null;
    }
    
    protected abstract void executeSync(@Nonnull final CommandContext p0);
}
