Class TeamGroupSubCommand

java.lang.Object
fr.luc.crcore.command.AbstractCommand
fr.luc.crcore.command.SubCommand
fr.luc.crcore.command.builtin.team.TeamGroupSubCommand
All Implemented Interfaces:
Command

public class TeamGroupSubCommand extends SubCommand
Groupe /core team ... : container de toutes les sous-commandes d'équipe par défaut.

Pour overrider une sous-commande, un plugin de jeu fait :

core.getCoreCommand().findSubCommand("team")
    .ifPresent(team -> team.replaceSubCommand("create", new MyCustomCreate(svc)));

Ou sous-classe TeamGroupSubCommand et redéfinit son constructeur pour swap ce qu'il faut.

  • Field Details

  • Constructor Details

    • TeamGroupSubCommand

      public TeamGroupSubCommand(TeamService service)
  • Method Details

    • registerDefaults

      protected void registerDefaults()
      Enregistre toutes les sous-commandes par défaut. Override pour exclure ou ajouter des sous-commandes au lieu du jeu standard.