Class BindingsCommand

  • All Implemented Interfaces:
    Command

    public class BindingsCommand
    extends AbstractCommand
    Implements the "bindings" command, listing currently active keybindings (for both a character and the global ones).
    • Constructor Detail

      • BindingsCommand

        public BindingsCommand​(@NotNull
                               @NotNull CrossfireServerConnection crossfireServerConnection,
                               @NotNull
                               @NotNull KeybindingsManager keybindingsManager)
        Creates a new instance.
        Parameters:
        crossfireServerConnection - the connection instance
        keybindingsManager - bindings information
    • Method Detail

      • allArguments

        public boolean allArguments()
        Description copied from interface: Command
        Returns whether all remaining commands should be included as arguments.
        Returns:
        whether all remaining commands should be included as arguments
      • execute

        public void execute​(@NotNull
                            @NotNull java.lang.String args)
        Description copied from interface: Command
        Executes the command with the given arguments.
        Parameters:
        args - the command arguments