getPlayerTime - what timestamp?

Discussion in 'Plugin Development' started by IceBeast, Mar 14, 2014.

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


  2. Offline


    Im pretty sure thats the players systems time, and this is how you get the servers actual time.
    Server server = plugin.getServer();
    long time = server.getTime();
  3. Offline


    It's not the user's computer's time.. it's their player time on the server. You can use player.setPlayerTime to set the game time to day where the server time could be night. Player specific day/night cycle!
    IceBeast likes this.
  4. Offline


    It should return a value between 0 and 24000 in ticks, to represent the minecraft days time for the player.
    But better try it. Because I don't now why the return type is a "long" then.
    If it's on purpose, then it might deliver something else.
    The API docs are not totally clear about this. But Bart should be right.
Thread Status:
Not open for further replies.

Share This Page