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

Invite Cleanup #4269

Merged
merged 13 commits into from Aug 21, 2020
Merged

Invite Cleanup #4269

merged 13 commits into from Aug 21, 2020

Conversation

ghost
Copy link

@ghost ghost commented Aug 16, 2020

Description:

This PR cleans up the Invite objects quite a bit by introducing a new AbstractInvite<S,R> to consolidate redundant invite code. In addition getDirectSender() now returns a CommandSender as opposed to just String. This allows us to just pass in the raw Player object without trying to get the name. Because of this some of the messaging methods have been modified to accept CommandSender. Even with these additional fixes, this PR will shrink the codebase by about ~30 lines.


  • 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.

@LlmDl LlmDl merged commit c186de9 into TownyAdvanced:master Aug 21, 2020
@LlmDl LlmDl added this to the 0.96.3.0 milestone Aug 21, 2020
LlmDl added a commit that referenced this pull request Aug 21, 2020
    - Removes towns.txt and nations.txt files on flatfile databases.
      - Loads old towns.txt and nations.txt to ensure that orphaned
files in the
        towns & nations folders are not loaded. If successfully loaded,
the
        towns.txt and nations.txt files are deleted.
    - Residents now store their Town, and Towns do not store their
Residents.
    - Towns now store their Nation, and Nations do not store their
Towns.
    - Towny now handles loading a mayor for a town intelligently.
      - If a town attempts to set a mayor who is not part of the town,
and the
        town has no residents, the town will be deleted.
      - Closes #4170.
    - Towny now handles loading the capital of a nation intelligently.
  - Little fixes for TownySQLSource:
    - Hit TownySQLSource with the formatting stick.
    - Add tar/tar.gz backups to the backup code.
    - Make deletePlotGroup actually do something.
  - Invite Cleanup, courtesy of Siris with PR #4269.
  - Cleanup Confirmation class and properly implement async, courtesy of
Siris with PR #4280.
  - Remove Secondary POM file, courtesy of TheFlagCourier with PR #4278.
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