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

Suggestion: /n outlaw #6544

Closed
jwkerr opened this issue Mar 9, 2023 · 3 comments · Fixed by #7129
Closed

Suggestion: /n outlaw #6544

jwkerr opened this issue Mar 9, 2023 · 3 comments · Fixed by #7129

Comments

@jwkerr
Copy link
Contributor

jwkerr commented Mar 9, 2023

Please explain your feature request to the best of your abilities:

You can /t outlaw and prevent people joining your town but something like /n outlaw would be good to prevent towns from joining your nation because as far as I know the only way to prevent people from joining is to completely toggle open on your nation

@LlmDl
Copy link
Member

LlmDl commented Mar 9, 2023

This is a good idea, but I think I'll use a name different to "outlaw", as that comes along with a fair number of expected features: jailing, teleporting, etc.

@CorruptedGreed
Copy link

Maybe /n restrict could work as a name

@Dres12345
Copy link

Good suggestion, the nation Patagonia has had issues with towns joining just for the claim bonus, then leaving to join their original nation after they’ve finished claiming.

LlmDl added a commit that referenced this issue Dec 20, 2023
joining the nation via invite or join.

Closes #6544.
@LlmDl LlmDl self-assigned this Dec 20, 2023
@LlmDl LlmDl added this to the 0.100.1.0 milestone Dec 20, 2023
LlmDl added a commit that referenced this issue Dec 21, 2023
…oining the nation via invite or join. (#7129)

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

Closes #6544.

* Forgot a lang string.

* Add admin command

* Can't forget about the name blacklist!

* Fix lang strings, add ability to /n sanctiontown list [nation], add
events.
LlmDl added a commit that referenced this issue Dec 21, 2023
joining the nation via invite or join.
    - Using /n sanctiontown ... kings can add/remove and list their
sanctioned towns.
    - Closes #6544.
  - 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.
    - list [nationname] - Lists the sanctioned towns of other nations.
  - 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment