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 option to use world key instead of world name #7388

Merged
merged 5 commits into from
May 6, 2024

Conversation

gecko10000
Copy link
Contributor

@gecko10000 gecko10000 commented Apr 28, 2024

Description:

This adds the option to use a world's key for the webmap link instead of the world name. For example, squaremap uses the world's namespaced key and doesn't integrate with Towny's approach to this.


New Nodes/Commands/ConfigOptions:

  - New Config Option: plugin.interfacing.web_map.world_name_uses_world_key
    - Default: false
    - If enabled, the world name placeholder will be replaced with the world key instead of the Bukkit name.
    - This should be enabled if you use SquareMap.

Relevant Towny Issue ticket:

N/A


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

@gecko10000
Copy link
Contributor Author

Not sure what happened with the newlines, but I re-added them.

gecko10000 and others added 2 commits April 30, 2024 01:01
Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com>
@LlmDl LlmDl requested a review from Warriorrrr May 2, 2024 15:00
@LlmDl LlmDl added this to the 0.100.3.0 milestone May 6, 2024
@LlmDl LlmDl merged commit 6028e24 into TownyAdvanced:master May 6, 2024
3 checks passed
LlmDl added a commit that referenced this pull request May 6, 2024
with PR #7402.
  - Fix Towny not loading on older minecraft servers missing
FileNameUtils modern methods, courtesy of Warrior with PR #7403.
    - Closes #7399.
  - Allow setting a default plot price of -1, courtesy of Warrior with
PR #7313.
    - A town can now prevent their plots going up for sale by setting a
plot price of -1, using /t set plotprice -1.
    - Closes #7295.
  - Add option to use world key instead of world name, courtesy of
gecko10000 with PR #7388. (First-Time Contributor!)
  - New Config Option:
plugin.interfacing.web_map.world_name_uses_world_key
    - Default: false
    - If enabled, the world name placeholder will be replaced with the
world key instead of the Bukkit name.
    - This should be enabled if you use SquareMap.
  - Bump adventure platform bukkit to 4.3.3-SNAPSHOT, courtesy of
Warrior with PR #7395.
    - Adds support for 1.20.5/6 in Towny.
  - API: add NATION_LIST_BY, TOWN_LIST_BY TownyCommandAddons.
    - Closes #7397.
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.

None yet

3 participants