Class AbstractCommand

    • Constructor Detail

      • AbstractCommand

        public AbstractCommand​(CommandRegistry registry,
                               boolean isolated)
    • Method Detail

      • isIsolated

        public boolean isIsolated()
        Description copied from interface: Command
        Returns whether it is a command that must be guaranteed not to be executed at the same time as another command.
        Specified by:
        isIsolated in interface Command
        Returns:
        true if the command should ensure that it is not executed at the same time as another command; false otherwise
      • debug

        protected java.lang.String debug​(java.lang.String message)
      • info

        protected java.lang.String info​(java.lang.String message)
      • warn

        protected java.lang.String warn​(java.lang.String message)
      • error

        protected java.lang.String error​(java.lang.String message)
      • success

        protected CommandResult success​(java.lang.String message)
      • failed

        protected CommandResult failed​(java.lang.String message)
      • failed

        protected CommandResult failed​(java.lang.String message,
                                       java.lang.Throwable throwable)
      • failed

        protected CommandResult failed​(java.lang.Throwable throwable)