Git Product home page Git Product logo

Comments (10)

Luohuayu avatar Luohuayu commented on May 26, 2024

Vanilla time command resets the time to the first day 0 tick, EssentialsX time command increases the time to the next day 0 tick.
I think it's just different ways, but there are no problems.

from catserver.

TheDarkDnKTv avatar TheDarkDnKTv commented on May 26, 2024

But why when there is no essentialsx this method returns long [0-24000) but with it it's works like world.getTotalWorldTime(), it just adds tick... This method on our server returns something about 300k fully same like world.getTotalWorldTime() :\

from catserver.

Luohuayu avatar Luohuayu commented on May 26, 2024

Without EssentialsX does not reset at 24000

from catserver.

TheDarkDnKTv avatar TheDarkDnKTv commented on May 26, 2024

Without EssentialsX does not reset at 24000

Resets, i checket it in debug. When entering /time set 0 or just wait, method getWorldTime() resets, method getTotalWorldTime keep value.

from catserver.

TheDarkDnKTv avatar TheDarkDnKTv commented on May 26, 2024

It is reason why we have two methods....

from catserver.

Luohuayu avatar Luohuayu commented on May 26, 2024

I did not find the time reset code on Forge server

from catserver.

TheDarkDnKTv avatar TheDarkDnKTv commented on May 26, 2024

Maybe because it is minecraft code? I do not know, but you can debug by yourself and make sure method World#getWorldTime value cannot be more than 24000 ticks

from catserver.

Luohuayu avatar Luohuayu commented on May 26, 2024

Debug without any mods and plugins:
https://i.loli.net/2019/12/14/InsrTgLWQMjRZwm.png

from catserver.

Luohuayu avatar Luohuayu commented on May 26, 2024

Vanilla server does not reset time to 0, it just keeps increasing

from catserver.

TheDarkDnKTv avatar TheDarkDnKTv commented on May 26, 2024

Yea, checked it twice, you right. If enter /time set 0 then time resets, when essentialsx installed - didn't resets. If just wait, then it is counting more than 24000. Thank you for answer.

from catserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.