-
-
Notifications
You must be signed in to change notification settings - Fork 400
EvtRealTime #7332
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
EvtRealTime #7332
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps some tests may be warranted
What do you think of the syntax pattern |
Yes |
Well, imo, it would make it look silly if users provided multiple times. |
It won’t be |
Right, but regardless, to me it would still look silly. |
Again, it's whatever the majority chooses. Can't fight that |
seems fine to me, since proper use would entail using
|
Well, that seems to be the majority then. I will make change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The more I'm thinking about this, the less I understand why Time needs changes at all. EvtRealTime doesn't use Time after getting its hour/minute values, so why does Time need to store AM/PM? Can't it just convert everything to 24hr time internally, like it already did?
(plus 6pm will return 6 for getHour now, which means the epected calendar date will be 6am, not pm)
Just through each iteration of requested changes, the usage of it was lost. As I had utilized it beforehand.
I’m pretty sure it works as intended, I only tested 2 times (12:10 am and 3:15pm) |
Ah right it works if you add 12 hours prior to construction, which is done in the parser, so it's 12 hours worth of seconds stored (which rolls back around to what's the point of timeformat but you already addresssed that) |
Just to check, but do you want me to remove it? |
Yeah it doesn't need to exist so no need to add it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few last things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good
Description
This PR aims to add an event that is called when the local time of the system reaches the provided time(s)
Allowing users to make real time events for their server.
Target Minecraft Versions: any
Requirements: none
Related Issues: #3378