Changing map time?

Discussion in 'Plugin Development' started by Infernus, Mar 1, 2011.

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

    Infernus

    I've been searching around the forums how to change the map time without any good results except for the 'extendday' mech, which hasn't got a released source.

    I would really appreciate it if someone would tell me how to change the time while not using the 'time set' parameter.
     
  2. Offline

    Bobby_Bonsai

    Have a look at the World-class:

    Code:
    org.bukkit.World.setTime(long l)
    
     
  3. Offline

    Infernus

    Hey, thanks for your reply :)

    While I tried this I got an error, I also tried import org.bukkit.World;

    error (open)
    Cannot make static reference to non-static method setTime(long) from the type World.

    code (open)
    long i = 12000;
    org.bukkit.World.setTime(12000);
     
  4. Offline

    Plague

    player.getWorld().setTime()
     
  5. Offline

    Infernus

    Is this only clientside only , this time? I'll check out meanwhile.
     
  6. Offline

    lonelydime

    It's not clientside only, it just gets the world the player (assuming it's a player) is in and sets that world's time.
     
  7. Offline

    Infernus

    Thank you, problem solved! :)
     
Thread Status:
Not open for further replies.

Share This Page