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

Fix AlreadyRegisteredException when accepting two invites or more #5254

Merged
merged 2 commits into from Sep 1, 2021
Merged

Fix AlreadyRegisteredException when accepting two invites or more #5254

merged 2 commits into from Sep 1, 2021

Conversation

ghost
Copy link

@ghost ghost commented Aug 31, 2021

Description:

An AlreadyRegisteredException spawns when a user accepts two more invites without leaving a town prior. This check will warn the player they are already in a town and not add them but remove the invite.


New Nodes/Commands/ConfigOptions:


Relevant Towny Issue ticket:

Didn't make an issue.


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

Tested on 1.17.1.

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.

0xBit added 2 commits August 31, 2021 09:14
If a player joined a town already, they can't be added to another town. So check if the player does not have a town and then add them!
Add check for AlreadyRegisteredException
@LlmDl LlmDl merged commit af6310f into TownyAdvanced:master Sep 1, 2021
@LlmDl LlmDl added this to the 0.97.2.0 milestone Sep 1, 2021
LlmDl added a commit that referenced this pull request Sep 1, 2021
mayor is used, courtesy of Warriorrrr with PR #5235.
  - Make context calculation faster, courtesy of Warriorrrr with PR
#5244.
  - Check if resident is friended before sending removal message,
courtesy of Warriorrrr with PR #5253.
  - Fix AlreadyRegisteredException when accepting two invites or more,
courtesy of 0xBit-MC #5254.
  - Add prompts for Add Player to PermissionGUI, courtesy of Warriorrrr
with PR #5248.
  - Prevent chickens being spawned without permission, courtesy of
Warriorrrr with PR #5237.
    - An egg that lands in a plot will test if the egg-thrower can
item_use in that location, when eggs are in the item_use list.
    - Eggs will automatically be added to the config.yml's item_use list
with this update.
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.

1 participant