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

Minor Task Cleanup #4174

Merged
merged 2 commits into from
Jul 16, 2020
Merged

Minor Task Cleanup #4174

merged 2 commits into from
Jul 16, 2020

Conversation

silverwolfg11
Copy link
Contributor

Description:

Just small minor cleanup.
Changes TownyTimerTask to implement Runnable instead of TimerTask because it was literally doing nothing with the TimerTask extension.
Also change the UUID task to implement Runnable to since it was being called with the Bukkit Scheduler.
Also the UUID task was using .remove() on a queue...so change it to use poll().
Also encapsulate the UUID counter and smack on some accessor / mutator methods.


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.

@silverwolfg11 silverwolfg11 changed the title Refactor/task cleanup Minor Task Cleanup Jul 16, 2020
@LlmDl LlmDl merged commit 33b25e8 into master Jul 16, 2020
LlmDl added a commit that referenced this pull request Jul 16, 2020
  - Minor task cleanup, courtesy of silverwolfg11 with PR #4174.
@LlmDl LlmDl deleted the refactor/task-cleanup branch July 16, 2020 12:35
@LlmDl LlmDl added this to the 0.96.3.0 milestone Jul 16, 2020
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.

2 participants