Class TeamTopSubCommand
java.lang.Object
fr.luc.crcore.command.AbstractCommand
fr.luc.crcore.command.SubCommand
fr.luc.crcore.command.builtin.team.TeamTopSubCommand
- All Implemented Interfaces:
Command
/core team top [score]
Affiche le classement des équipes. Sans argument, classement global (somme de tous les scores). Avec un nom de score, classement sur ce score précis.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTeamTopSubCommand(TeamService service) TeamTopSubCommand(TeamService service, int limit) -
Method Summary
Methods inherited from class AbstractCommand
addAlias, addSubCommand, argument, buildContext, buildDefaultUsage, checkAccess, description, dispatch, findSubCommand, getAliases, getDescription, getName, getPermission, getRequiredArgumentCount, getSubCommands, getTotalArgumentCount, getUsage, hasSubCommands, isPlayerOnly, listSubCommands, optionalArgument, permission, playerOnly, replaceSubCommand, tabComplete, usage
-
Field Details
-
service
-
limit
protected final int limit
-
-
Constructor Details
-
TeamTopSubCommand
-
TeamTopSubCommand
-
-
Method Details
-
execute
Description copied from class:AbstractCommandLogique métier de la commande. Override par les sous-classes.Comportement par défaut :
- Si cette commande a des sous-commandes → affiche la liste (aide).
- Sinon → renvoie
CommandResult.invalidUsage().
- Specified by:
executein interfaceCommand- Overrides:
executein classAbstractCommand
-