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

Add the ability for nations to sanction towns, preventing them from joining the nation via invite or join. #7129

Merged
merged 5 commits into from
Dec 21, 2023

Conversation

LlmDl
Copy link
Member

@LlmDl LlmDl commented Dec 20, 2023

Description:


New Nodes/Commands/ConfigOptions:

  - New Command: /nation sanctiontown
    - add [Townname] - Adds a town to the sanctioned town list.
    - remove [Townname] - Removes a town from the sanctioned town list.
    - list - Lists your nation's sanctioned towns.
  - New Command: /ta nation [nationname] sanctiontown
    - add [Townname] - Adds a town to the sanctioned town list.
    - remove [Townname] - Removes a town from the sanctioned town list.
    - list - Lists the nation's sanctioned towns.
  - New Permission Node: towny.command.nation.sanctiontown
    - Allows adding/removing sanctioned towns, a child node of towny.command.nation.*.
    - No townyperms.yml change is required.
  - New Permission Node: towny.command.townyadmin.nation.sanctiontown
    - Allows admins to add/remove sanctioned towns from a given nation, a child node of towny.command.townyadmin.nation.*.
    - No townyperms.yml change is required.
  - API: Added NationSanctionTownAddEvent
    - A cancellable event which is fired before a town becomes sanctioned.
  - API: Added NationSanctionTownRemoveEvent
    - A cancellable event which is fired before a town becomes unsanctioned.

Relevant Towny Issue ticket:

Closes #6544.


  • 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 added this to the 0.100.1.0 milestone Dec 21, 2023
@LlmDl LlmDl merged commit f046154 into master Dec 21, 2023
4 checks passed
@LlmDl LlmDl deleted the feat/sanctioned_towns branch December 21, 2023 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: /n outlaw
1 participant