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

How to do action all 10 seconds

Comments in 'Plugin Development' started by jjmc, Feb 3, 2016.

  1. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Title: How to do action all 10 seconds - Where does it say that the task has to stop after 10 seconds? It says all 10 seconds.
    PocketKiller and Primus like this.
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Actually you're right :D
  3. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Hehe xD
  4. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    I send My Code You Say Me False :)
    And Some People Like You
    Last edited: Feb 5, 2016
  5. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Why do you capitalise every single word's first letter?
  6. Omar2s2
    Offline

    Omar2s2 New Member

    Joined:
    Dec 23, 2015
    Posts:
    12
    Minecraft User:
    Pop
    This Is Your Old Code
    PHP:
    public $time 0;

    public function 
    onRun($tkck){$this->time--;
    if(
    $this->time == 0){
    //-----------------------
    // code
    //-----------------------
    //$this->time = 0;// Nothing TODO
    }
    }
    // How Can Start Time !
    $this->time 10;
    This Your Old Code True
    Nawaf_Craft1b likes this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Actually, is all that so hard?
    timer.PNG
    Nawaf_Craft1b and jojoe77777 like this.
  8. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    i send My Code But Some Guys Say False

Share This Page

Advertisement