How can I get the total game time passed, not the world time? I'm looking for the same value that returns when using /time query gametime
That still gives me the day time of the world I'm in, not the game time. When setting doDaylightCycle to false, that value never changes but /time query gametime does.
You are going to have to tick the time yourself then. The total tick time is stored inside the world not the server. EDIT: Decided to do some digging real quick. 1) Looking inside NMS I see that the command you are using uses the method: NMS.World#getTime() 2) NMS.World returns NMS.WorldData#getTime() So since spigot isn't covering your specific issue. You are going to need to use NMS to get the value. Code (Java): World world = Bukkit.getWorlds().get(0); System.out.println(((CraftWorld) world).getHandle().worldData.getTime()); This should help move you in the right direction. You will need to use reflections to access the method across multiple versions of spigot.