Class ScripttellCommand

  • All Implemented Interfaces:
    Command

    public class ScripttellCommand
    extends AbstractCommand
    Implements the "scripttell" command. It sends a "scripttell" command to a script.
    • Constructor Detail

      • ScripttellCommand

        public ScripttellCommand​(@NotNull
                                 @NotNull ScriptManager scriptManager,
                                 @NotNull
                                 @NotNull CrossfireServerConnection crossfireServerConnection)
        Creates a new instance.
        Parameters:
        scriptManager - the script manager to use
        crossfireServerConnection - the connection instance
    • 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