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

Show custom townranks and area of the map controlled by each town inside the hoverinfo for towns #12

Open
leomeinel opened this issue Oct 14, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@leomeinel
Copy link

Additional context
Would be nice, so its more coherent with the server setups and the area controlled by town (of total map size) would also be very useful for competition!

@leomeinel leomeinel added the enhancement New feature or request label Oct 14, 2021
@silverwolfg11
Copy link
Collaborator

silverwolfg11 commented Oct 17, 2021

You can already display custom town ranks within the hover info. Simply use the placeholder %rank_%. For example if there was a "co-mayor" town rank, the placeholder would be %rank_co-mayor%.

As for the area controlled by town, I am not sure it's really feasible to get the "map size". For worlds without any borders, the map size is, for all intensive purposes, infinite so the proportion of area controlled by a town will be effectively zero. I guess I could use the area of vanilla world border as a map size, but I also know many servers use separate world border plugins to implement world borders, so I am not sure how applicable this feature would really be to many servers.

@silverwolfg11 silverwolfg11 modified the milestone: 1.0.0 Oct 17, 2021
@silverwolfg11
Copy link
Collaborator

silverwolfg11 commented Oct 17, 2021

After you posted this, I wanted to confirm that custom town ranks did work and I realized there was a bug in displaying them. I have created a separate bug ticket and it will be fixed in the 1.0.0 release.

Thank you for making me aware of the bug!

@leomeinel
Copy link
Author

Okay perfect!
Thanks silverwolfg11.
About the map size, I already thought about that too. You could make either a config option to enter the radius/diameter of the map or get the vanilla world border by default. I can only assume but it'd apply to a lot of people in my opinion. For those that don't use a worldborder you could also just disable the option by default and set a config option that you have to set true for the function to be enabled at all.
It's more of a nice to have, if you think that its worth it that would be a way to make it fit every server I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants