Is there a plugin to tell what time it is in my SMP server (time in game) without changing the time? I'm hoping for a plugin, and not a mod like Single Player Commands that I have to compile into the server .jar. My other idea is to parse the logs for the last time someone used /time and figure it out from there.
Minecraft – How to get the server time in Minecraft
minecraft-java-edition
Related Topic
- Minecraft – way to add furniture to Minecraft SMP
- Minecraft – Can you use single player mods on multiplayer
- Minecraft – How to install Single Player Commands on Minecraft for Ubuntu? I need Step-by-Step instructions
- Minecraft – install and use multiple mods at the same time
- Minecraft – How to convert a FTB server to a singleplayer world in Minecraft
- Minecraft – Why does Mojang say to run the Minecraft Server file in the command prompt
Best Answer
Figured it out. The data is in the level.dat file. Assuming you're using Python, here's a code snippet that should get the current time (run "sudo pip install nbt" first):
For bonus points, you can change the modulo to a division sign and get how many days it has been since you started.