Search in sources :

Example 1 with Mastermind

use of gg.projecteden.nexus.features.minigames.mechanics.Mastermind in project Nexus by ProjectEdenGG.

the class MinigamesCommand method mastermindShowAnswer.

@Path("mastermind showAnswer")
@Permission(Group.ADMIN)
void mastermindShowAnswer() {
    if (!minigamer.isPlaying(Mastermind.class))
        error("You must be playing Mastermind to use this command");
    MastermindMatchData matchData = minigamer.getMatch().getMatchData();
    send(matchData.getAnswer().toString());
}
Also used : Mastermind(gg.projecteden.nexus.features.minigames.mechanics.Mastermind) MastermindMatchData(gg.projecteden.nexus.features.minigames.models.matchdata.MastermindMatchData) Path(gg.projecteden.nexus.framework.commands.models.annotations.Path) Permission(gg.projecteden.nexus.framework.commands.models.annotations.Permission)

Example 2 with Mastermind

use of gg.projecteden.nexus.features.minigames.mechanics.Mastermind in project Nexus by ProjectEdenGG.

the class MinigamesCommand method mastermindPlayAgain.

@HideFromHelp
@TabCompleteIgnore
@Path("mastermind playAgain")
void mastermindPlayAgain() {
    if (!minigamer.isPlaying(Mastermind.class))
        error("You must be playing Mastermind to use this command");
    MastermindMatchData matchData = minigamer.getMatch().getMatchData();
    matchData.reset(minigamer);
}
Also used : Mastermind(gg.projecteden.nexus.features.minigames.mechanics.Mastermind) MastermindMatchData(gg.projecteden.nexus.features.minigames.models.matchdata.MastermindMatchData) Path(gg.projecteden.nexus.framework.commands.models.annotations.Path) HideFromHelp(gg.projecteden.nexus.framework.commands.models.annotations.HideFromHelp) TabCompleteIgnore(gg.projecteden.nexus.framework.commands.models.annotations.TabCompleteIgnore)

Aggregations

Mastermind (gg.projecteden.nexus.features.minigames.mechanics.Mastermind)2 MastermindMatchData (gg.projecteden.nexus.features.minigames.models.matchdata.MastermindMatchData)2 Path (gg.projecteden.nexus.framework.commands.models.annotations.Path)2 HideFromHelp (gg.projecteden.nexus.framework.commands.models.annotations.HideFromHelp)1 Permission (gg.projecteden.nexus.framework.commands.models.annotations.Permission)1 TabCompleteIgnore (gg.projecteden.nexus.framework.commands.models.annotations.TabCompleteIgnore)1