Newer
Older
KeeperJerry_Launcher / LaunchServer / source / command / hash / SyncProfilesCommand.java
@sashok724 sashok724 on 2 Dec 2016 673 bytes перед тем как начать
package launchserver.command.hash;

import java.io.IOException;

import launcher.helper.LogHelper;
import launchserver.LaunchServer;
import launchserver.command.Command;

public final class SyncProfilesCommand extends Command {
    public SyncProfilesCommand(LaunchServer server) {
        super(server);
    }

    @Override
    public String getArgsDescription() {
        return null;
    }

    @Override
    public String getUsageDescription() {
        return "Resync profiles dir";
    }

    @Override
    public void invoke(String... args) throws IOException {
        server.syncProfilesDir();
        LogHelper.subInfo("Profiles successfully resynced");
    }
}