Votifier API, checking to see if player voted within 24 hours once

Discussion in 'Plugin Development' started by Neilnet, Jan 22, 2015.

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

    Neilnet

    This thread asks the same question, I would like to know the same thing.

    Can this be accomplished, as I'm trying to remind the player to vote if they haven't in 24 hours.
     
  2. Offline

    mine-care

    Keep a map or generally assign a player (prefer uuid) with the time he last voted, run a repeating task that checks every so long (it doesnt have to be like i tick...) if the players last vote compared to curent time is more than 24 hours. then do whatever action you want :)
    Hope that helps
     
    MaTaMoR_ likes this.
  3. Offline

    Neilnet

    I've thought about the map idea, won't the map go when the server reloads or restarts?
     
  4. Offline

    mine-care

Thread Status:
Not open for further replies.

Share This Page