Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating Tasks

Comments in 'Plugin Development' started by Pman1220, Jun 7, 2015.

  1. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    Im working on a game plugin for my server. And I know I need to make a simple task. Basically the task needs to begin when the server starts. I need a basic timer, when the timer gets to a certain point I will teleport players to an area. Now teleporting players is not my problem, my problem is I'm not sure how to go about making this timer/scheduler/task. Any help would be appreciated!
    Last edited: Jun 7, 2015
  2. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    Ok thanks great! But I'd also like to put in there messages when the game begins. Such as Game will start in 10 minutes, 5 and so on.
  3. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    But you can do some things with repeating task like with delayTask right?
  4. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    Thank you so much! I understand Tasks a bit better now
  5. mamayadesu
    Offline

    mamayadesu Active Member Plugin Developer

    Joined:
    Sep 19, 2013
    Posts:
    146
    Plugins:
    4
    Minecraft User:
    mamayadesu
    what classes for that needed?
  6. mamayadesu
    Offline

    mamayadesu Active Member Plugin Developer

    Joined:
    Sep 19, 2013
    Posts:
    146
    Plugins:
    4
    Minecraft User:
    mamayadesu
    and what means $this->plugin->min -= 1; ?
  7. Artide
    Offline

    Artide Active Member

    Joined:
    Apr 20, 2015
    Posts:
    214
    Minecraft User:
    Artide5
    Means to count down by 1 from 10.

Share This Page

Advertisement