TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
519 stars 356 forks source link

Suggestion: Towny menu customizability #6168

Closed Vanstredam closed 2 years ago

Vanstredam commented 2 years ago

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

Since the current resident/town/nation menus are hard coded into Towny, I thought it could add to the customizability if you could freely change the aesthetic of the menus without having to fork the plugin to do it yourself.

It could also help with implementing servers with custom calendars or ones that use Minecraft days for the date of a town instead of real life time.

LlmDl commented 2 years ago

Are you speaking about the status screens? What menu are you talking about?

Vanstredam commented 2 years ago

Are you speaking about the status screens? What menu are you talking about?

Yeah those, the ones you do when running /res or /t

LlmDl commented 2 years ago

Those are already fully customizable, the status screen events allow you to add/remove/modify the Components that make up the status screens.

Vanstredam commented 2 years ago

Those are already fully customizable, the status screen events allow you to add/remove/modify the Components that make up the status screens.

Wait they are? Last time I asked a dev about it they said it was hard coded into Towny.

LlmDl commented 2 years ago

Its been customizable for months if not a year now.

LlmDl commented 2 years ago

https://github.com/TownyAdvanced/Towny/commits/master/src/com/palmergames/bukkit/towny/event/statusscreen

Jan 1 2021

Vanstredam commented 2 years ago

How exactly do I change the layout of it though?

LlmDl commented 2 years ago

event.getStatusScreen() will get you the StatusScreen object that you can manipulate.