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


    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


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


    ok thanks :)
  4. Offline


    where do i add this?
  5. Offline


    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


    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