Reduce the time of a day

Discussion in 'Plugin Development' started by Skyost, Aug 26, 2013.

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

    Skyost

    Hi,
    I just want to ask if it possible to reduce the time of day ?
    If so, how can I do this ?
    Thanks ;)

    Bump please :)

    Bump :'(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  2. Skyost
    Jesus christ, stop bumping your thread every few minutes.

    I'm not sure what you mean, but I think you can use World.setFullTime(long).
     
  3. Offline

    Skyost

    Yes, sorry.
    Yes, in a custom Listener ?
    (I want to reduce a day :/ )
     
  4. Skyost
    In any listener or method. In your case, onEnable() method would be the best.
     
    Skyost likes this.
  5. Offline

    newboyhun

    Skyost
    Every tick inrease the time...
     
    Skyost likes this.
  6. Offline

    Skyost

    So how can I reduce the number of ticks ?
     
  7. Offline

    newboyhun

    Skyost
    By increasing time every tick.
    Every tick increasing is like dividing by two the day.
     
  8. Offline

    Napkin222

    Either:
    every tick advance it another tick (halves the time)
    every other tick advance it another tick (thirds the time)
    every third tick advance it another tick (quarters the time)
    etc.
     
  9. Offline

    newboyhun

  10. Offline

    nitrousspark

    Code:
    Bukkit.getWorld("world").setTime(Bukkit.getWorld("world").getTime() + 100)
     
  11. Offline

    Skyost

    Thanks :)
     
Thread Status:
Not open for further replies.

Share This Page