Solved Custom Day/Night Cycle

Discussion in 'Plugin Development' started by shades161, Jun 23, 2016.

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

    shades161

    I am working on a plugin in which I need there to be a much shorter day/night cycle (about 6 minutes total) but I can't figure out a way to do this.
    I looked all over google and the javadocs and came up with nothing.
    I know it's possible since there are plugins that exist that can control this but I need a way to implement this in my plugin.

    Any help is appreciated. Thank you!
     
  2. Online

    timtower Administrator Administrator Moderator

    @shades161 Server ticks per day / minutes per day * new minutes per day.
    Now you know how many ticks a day needs to be.
    And this is also where it gets nasty: you need to add the ticks to the cycle, so if the server ticks once then you need to add another tick
     
  3. Offline

    shades161

    @timtower Thank you, I figured out the amount of ticks. Now just to see if I can figure out that nasty part of adding/removing ticks.
     
    timtower likes this.
Thread Status:
Not open for further replies.

Share This Page