Class SetCommand

  • All Implemented Interfaces:
    Command

    public class SetCommand
    extends AbstractCommand
    Implements the command "set". It changes settings options.
    • Constructor Detail

      • SetCommand

        public SetCommand​(@NotNull
                          @NotNull CrossfireServerConnection crossfireServerConnection,
                          @NotNull
                          @NotNull OptionManager optionManager)
        Creates a new instance.
        Parameters:
        crossfireServerConnection - the connection instance
        optionManager - the option manager to use
    • 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