package me.rkfg.xmpp.bot.plugins.game.command;

import java.util.Collection;
import java.util.Optional;
import java.util.stream.Stream;

import me.rkfg.xmpp.bot.plugins.game.IPlayer;

public interface ICommandHandler {

    Collection<String> getCommand();

    Optional<String> exec(IPlayer player, Stream<String> args);

    default Optional<String> getHelp() {
        return Optional.empty();
    }

    default boolean deadAllowed() {
        return false;
    }

    default boolean pregameAllowed() {
        return false;
    }

    default Optional<Integer> getFirstIntegerArg(Stream<String> args) {
        return args.findFirst().map(Integer::valueOf);
    }
}

@@ -385,14 +385,41 @@
 nal.
-empty(
+of(%22%D0%9D%D0%B5%D1%82 %D1%81%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B8 %D0%BF%D0%BE %D1%8D%D1%82%D0%BE%D0%B9 %D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D0%B5.%22
 );%0A 

Add default help message