Skip to content

Clean up and fix cooldown checking and message code.#600

Merged
benwoo1110 merged 2 commits into
mainfrom
cooldown
Dec 14, 2020
Merged

Clean up and fix cooldown checking and message code.#600
benwoo1110 merged 2 commits into
mainfrom
cooldown

Conversation

@nicegamer7

Copy link
Copy Markdown
Member

This PR includes the change made in #538, with some additional cleanup.

#538 fixed a few issues such as sending the cooldown twice, and enacting cooldown on the first time a player enters a nether-style portal. This PR does not include any additional fixes.

P.S. I tested this right before opening this PR, it's all working as expected :)

There were too many levels of indirection, leading to multiple sample
times and wasteful date object instantiations.

Fixes #444

@benwoo1110 benwoo1110 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are some of my suggestion 👍

Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated
Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated
Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated
Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated
Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated
Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated
Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated
Comment thread src/main/java/com/onarandombox/MultiversePortals/PortalPlayerSession.java Outdated

@benwoo1110 benwoo1110 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright looks good now.

@benwoo1110 benwoo1110 merged commit 5af8f5d into main Dec 14, 2020
@benwoo1110 benwoo1110 deleted the cooldown branch December 14, 2020 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants