Problem with world.getTime()

Discussion in 'Plugin Development' started by Linkupdated, Mar 31, 2011.

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

    Linkupdated

    Hi guys, since build 607 (1.4 update) world.getTime() alway return 8116 even a night. any idea why?

    and i tried world.getFullTime() and it returns : -7563664937152719884

    Code:
            public void onPlayerMove(PlayerMoveEvent event){
                if(plugin.TimeLoop){
                    World world = plugin.getServer().getWorld("valia2");
                    if(plugin.TimeLoopDay){
                        System.out.println(world.getTime());
                        if(world.getTime() >= 12000){
                            world.setTime(0);
                        }
                    }
                    else if(!plugin.TimeLoopDay){
                        if(world.getTime() < 12000){
                            world.setTime(12000);
                        }
                    }
                }
            }
     
  2. Offline

    cjc343

    I am also having issues with getTime and filed a bug report.

    It always returns 1459 for me.
     
  3. Offline

    Edward Hand

Thread Status:
Not open for further replies.

Share This Page