Check every 3 seconds!

Discussion in 'Plugin Development' started by MrGriefer_, Aug 16, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    MrGriefer_

    I'm trying to check if a player does not have 3 arrows in his inventory then we will add one arrow to his inventory, it will check every 3 seconds and it will keep checking every time a player does not have 3 arrows etc... But till now I didn't how to do this!

    Sorry for my bad English :)
     
  2. Offline

    Lordloss

    You will need something like a Scheduler for doing this. Look for bukkit scheduler on google.
     
  3. Offline

    MrGriefer_

    I know it's something with Bukkit scheduler but not sure which should I use!
     
  4. @MrGriefer_
    You should use a Repeating Task. Have a read about them here.
     
Thread Status:
Not open for further replies.

Share This Page