-
-
Notifications
You must be signed in to change notification settings - Fork 77
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 /plot visit [player] command #38
Conversation
This adds the ability to visit a player's claimed plot. To accomplish this, I add a new function to `database` that can find a plot's x, z coordinates by name, a new option to handle_plot_command, and new entries to the completion tree. I tested this to work for multiple players, and it does not break if someone has multiple plots, though you will always only go to one.
How does it handle if a player has more than one plot? It just get the first one it finds? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... it works
// 40: /p auto | ||
// 40: /p middle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope ;) I'll let it slide haha
Currently, if a player has more than one plot I've updated the branch to check argument count. |
This adds the ability to visit a player's claimed plot.
To accomplish this, I add a new function to
database
that can find aplot's x, z coordinates by name, a new option to handle_plot_command,
and new entries to the completion tree.
I tested this to work for multiple players, and it does not break if
someone has multiple plots, though you will always only go to one.