Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #300

Open
1Pootis1 opened this issue Oct 6, 2022 · 4 comments
Open

Question #300

1Pootis1 opened this issue Oct 6, 2022 · 4 comments
Assignees
Labels
Bug Something isn't working

Comments

@1Pootis1
Copy link

1Pootis1 commented Oct 6, 2022

Hello! I have a plugin on the server that interacts with your plugin's API, it shows what day, month and year it is in minecraft when the player enters the /date command. (The plugin is configured that in 1 year - 169 days of 12 months, each month has 14 days. All days are minecraft days.)
For example: [Time] It's Outside Day 4 Seventh Month 519 Year!

So, the plugin counts the day using "BecomeDayEvent", but I noticed that when there are no players on the server at all, the days go by too fast (somewhere in a minecraft day in 4 real minutes), here is an excerpt from the console:
image

(here is the transcript in English):

[18:32:59] [Server thread/INFO]: [Time] It's outside now 12 Day Fourth month 519 year!
[18:36:09] [Server thread/INFO]: [CustomCrafting] Saving Cauldrons
[18:36:50] [Server thread/INFO]: [Time] It's outside now 13 Day Fourth month 519 year!
[18:37:42] [Server thread/INFO]: [Time] It's outside now 13 Day Fourth month 519 year!
[18:37:44] [Server thread/INFO]: [Time] It's outside now 13 Day Fourth month 519 year!
[18:37:46] [Server thread/INFO]: [Time] It's outside now 13 Day Fourth month 519 year!
[18:37:46] [Server thread/INFO]: [Time] It's outside now 13 Day Fourth month 519 year!
[18:37:47] [Server thread / INFO]: [Time] Now in the yard 13 Day Fourth month 519 year!
[18:37:47] [Server thread / INFO]: [Time] Now in the yard 13 Day Fourth month 519 year!
[18:38:35] [Server thread / INFO]: [Time] Now in the yard 13 Day Fourth month 519 year!
[18:40:00] [Server thread/INFO]: [Time] Outside now 13 Day Fourth month 519 year!
[18:40:16] [Server thread / INFO]: [Time] It's outside now 13 Day Fourth month 519 year!
[18:41:00] [Server thread/INFO]: [Time] Outside now 14 Day Fourth month 519 year!

Why do the days in the game go faster when there are no players on the server and how to turn it off?

@1Pootis1 1Pootis1 added the Potential bug This may be a bug label Oct 6, 2022
@1Pootis1
Copy link
Author

1Pootis1 commented Oct 7, 2022

Edit: as it turned out, the event probably fires several times, regardless of whether the players are on the server or not. I will add that sometimes it works once, and sometimes several times, it is not clear why ..
This is very important and urgent for my project, I would like to get help as soon as possible :)

Debug photo:
image

Eng debug:

[00:35:12] [Server thread / INFO]: [Time] It is now 13 Day Eighth month 515 year!
[00:38:50] [Server thread / INFO]: [Time] It is now 13 Day Eighth month 515 year!
[00:39:08] [Server thread/WARN]: [DEBUG] BecomeDayEvent!be.betterplugins.bettersleeping.api.BecomeDayEvent@7941155
[00:39:08] [Server thread/WARN]: [DEBUG] EventName: BecomeDayEvent
[00:39:08] [Server thread/WARN]: [DEBUG] Cause: NATURAL
[00:39:46] [Server thread/WARN]: [DEBUG] BecomeDayEvent!be.betterplugins.bettersleeping.api.BecomeDayEvent@2afe89f3
[00:39:46] [Server thread/WARN]: [DEBUG] EventName: BecomeDayEvent
[00:39:46] [Server thread/WARN]: [DEBUG] Cause: NATURAL
[00:40:29] [Server thread / INFO]: [Time] Now in the yard 1 Day Ninth month 515 years!

@Nuytemans-Dieter Nuytemans-Dieter added Bug Something isn't working and removed Potential bug This may be a bug labels Oct 8, 2022
@Nuytemans-Dieter
Copy link
Owner

Thank you for reporting an issue! I will investigate this as soon as I find the time

@1Pootis1
Copy link
Author

1Pootis1 commented Oct 8, 2022

Maybe this will help with the investigation: debug when an event occurs, and here you can see that once every twenty minutes it occurs several times, sometimes even three times in a row ..

I’ll add: the time when the second event occurs changes, this is an occasion to think, it’s different 35 seconds, now it’s 37 seconds

image

@1Pootis1
Copy link
Author

1Pootis1 commented Oct 9, 2022

We found out why this happens: by adding more debug it turned out that our plugin was reading an event that was in two different worlds (and there are two worlds on the server), below is a screenshot of the debug

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants