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: Command to show resident plot locations #7075

Closed
tomhmagic opened this issue Nov 8, 2023 · 2 comments · Fixed by #7077
Closed

Suggestion: Command to show resident plot locations #7075

tomhmagic opened this issue Nov 8, 2023 · 2 comments · Fixed by #7077
Assignees
Milestone

Comments

@tomhmagic
Copy link

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

A command to show resident plot locations
/res NAME plots
/ta resident NAME plots

The list would show

Coords - Town - Plot type - claimed date (if possible)

to go even further it would be good to extend to seeing what plots they are trusted in
/res NAME plots owned/trusted
/ta resident NAME plots owned/trusted

this will show either the above output for owned or the following for trusted

Coords - Town - Plot type - Plot owner

@LlmDl LlmDl self-assigned this Nov 10, 2023
@LlmDl LlmDl added this to the 0.100.1.0 milestone Nov 10, 2023
@LlmDl
Copy link
Member

LlmDl commented Nov 10, 2023

Currently we don't store the date that a player claims a townblock, only the date/time when the town claimed the townblock. I may add that.

@LlmDl
Copy link
Member

LlmDl commented Nov 10, 2023

We also don't keep a list of plots in which a player is trusted in memory, a command listing those would result in polling all of the server townblocks for trust status.

LlmDl added a commit that referenced this issue Nov 10, 2023
New Permission Node: towny.command.resident.plotlist
New Command: /res plotlist {#}
New Command: /res plotlist [name] {#}

Closes #7075
@LlmDl LlmDl mentioned this issue Nov 10, 2023
1 task
LlmDl added a commit that referenced this issue Nov 13, 2023
* Add /res plotlist Command

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

Closes #7075

* Add the ability for admins to also spawn to those plots by clicking.

* TextComponent -> Component
LlmDl added a commit that referenced this issue Nov 13, 2023
TownyWorld objects.
  - Prevent ruined towns from being bought, courtesy of Warrior with
PR #7073.
  - Add /res plotlist {name} Command.
    - A command which shows you the plots which are personally owned by
yourself, or by the resident with the given name.
    - Location, town, plottype and plot name are all shown.
    - When it is used by an Admin, they also gain the ability to click
on the list to teleport to the plots as long as they possess the
towny.command.townyadmin.tpplot permission node.
    - Closes #7075.
  - New Permission Node: towny.command.resident.plotlist
    - Child nodes of towny.commmand.resident.*
    - No changes required to be made to the townyperms.yml.
  - 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.
  - Bump com.zaxxer:HikariCP from 5.0.1 to 5.1.0.
  - Bump org.junit.jupiter:junit-jupiter from 5.10.0 to 5.10.1.
  - Bump org.junit.jupiter:junit-jupiter-api from 5.10.0 to 5.10.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants