How do I change the server time using cmds???!?!

Discussion in 'Plugin Development' started by FlameHead269, Jan 15, 2011.

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

    FlameHead269

    Hello, once again its Flame. Me and my partner have got the cmds for it written down successfully but we need to know how to program exactly what the cmds will do(/time day) changes raw time to morning(/time night)changes it to night. Please help us out!
     
  2. Offline

    xupwup

    for day: plugin.getServer().setTime(0)
    for night: plugin.getServer().setTime(12000) // this is sundown, not night
    (one day lasts 24000)
     
  3. Offline

    1337

    ok thanks :)
     
  4. Offline

    Kbrizio

    where do i add this?
     
  5. Offline

    Archelaus


    It depends how you're using it. If you're gonna make a command, like these guys. Add it within the part that is called by the event.
     
  6. Offline

    feverdream

    My source is the best place to learn this stuff.. lots of comments, Look in my github.
     
Thread Status:
Not open for further replies.

Share This Page