1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Timer countdown on command

Discussion in 'Development' started by kazuya, May 25, 2017.

  1. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    this is a repost, start a countdown timer when run a command and switch to another timer when the number hits zero
     

    Attached Files:

  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    I think whatever you are asking this for could probably be done in a simpler way, but probably something to this effect:

    Listen for Command, then start FirstTask. When FirstTask is run, call firstTaskComplete in the main class. In that method, start SecondTask.

    Resources:
    Tasks/Timers
    Commands
     
  3. matija131

    matija131 Spider Jockey

    Messages:
    31
  4. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    probably unrelated since this is plugin DEV section
     
  6. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    that Tasks tutorial is helpful but I want to activate the timer when i run a specific command
     
  7. [deleted]

    [deleted] Guest

    Then start a Task if the command is called. Links to help you with creating Tasks have already been posted above.
     
  8. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.