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

Improve command blocking #6163

Merged
merged 1 commit into from
Sep 12, 2022
Merged

Improve command blocking #6163

merged 1 commit into from
Sep 12, 2022

Conversation

Warriorrrr
Copy link
Member

Description:

Improves command blocking by preventing bypasses and accounting for namespaces.

Users can now block commands from a specific plugin by adding the namespace when adding a command, i.e. blocking towny:town will block both towny:town and town from being used, while still allowing otherplugin:town to be used.

If a command to be blocked does not contain a namespace, the command will be blocked in all namespaces.


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

@Warriorrrr Warriorrrr added this to the 0.98.4.0 milestone Sep 9, 2022
@LlmDl LlmDl merged commit 514a771 into master Sep 12, 2022
@LlmDl LlmDl deleted the feature/improved-command-blocking branch September 12, 2022 22:17
LlmDl added a commit that referenced this pull request Sep 12, 2022
with PR #6167.
  - API: Add TownyAPI#getTown(Player), courtesy of Warriorrrr with
PR #6166.
  - Make TownyAPI#getOnlinePlayers(ResidentList) thread safe, courtesy
of Warriorrrr with PR #6165.
  - Improve command blocking, courtesy of Warriorrrr with PR #6163.
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.

2 participants