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 /res plotlist Command #7077

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Add /res plotlist Command #7077

merged 3 commits into from
Nov 13, 2023

Conversation

LlmDl
Copy link
Member

@LlmDl LlmDl commented Nov 10, 2023

Description:

This PR makes it possible to see a list of plots owned by a player, and their location, town, plottype and plot name.

When an admin uses the command, they also get hoverable/clickable lines which runs the /ta tpplot {worldname} {x} {z} command, allowing them to teleport easily to a player's plots.


New Nodes/Commands/ConfigOptions:

New Permission Node: towny.command.resident.plotlist
New Command: /res plotlist {#} - Shows a player their own list of plots, with an optional page number.
New Command: /res plotlist [name] {#} - Shows a a list of plots for the given player name, with an optional page number.


Relevant Towny Issue ticket:

Closes #7075


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

New Permission Node: towny.command.resident.plotlist
New Command: /res plotlist {#}
New Command: /res plotlist [name] {#}

Closes #7075
@LlmDl LlmDl added this to the 0.100.1.0 milestone Nov 10, 2023
? new TextComponent[plotCount % 10]
: new TextComponent[10];

String headerMsg = ChatColor.GOLD + "# " +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a component instead

@LlmDl LlmDl merged commit 2e4a54e into master Nov 13, 2023
4 checks passed
@LlmDl LlmDl deleted the feat/res_plotlist_command branch November 13, 2023 15:39
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: Command to show resident plot locations
2 participants