ShieldCommunity / SternalBoard

Lightweight & animated scoreboard, packet-based designed for easy usage
https://www.spigotmc.org/resources/sternalboard-lightweight-animated-scoreboard.89245/
MIT License
64 stars 20 forks source link

SternalBoard 3.0.0 #44

Closed xism4 closed 1 year ago

xism4 commented 1 year ago

I know we have left this plugin a bit aside, but we have been working privately and talking about it.

If you have other feature request, comment it.

Xxyuri2005xX commented 1 year ago
xism4 commented 1 year ago
  • Custom placeholders creation to use with SternalBoard (example: %online% -> returns the number of online players) with as parameters in the creation: placeholder (%time%), update(in seconds, 1), return (the part of the code that returns what is of interest)
  • Placeholders update method

I think that custom placeholders is good for specific boars settings, mostly like any server uses placeholderapi and the %online% seems redundant.

Ill take a look on the New method used

tomkeuper commented 1 year ago

I think that custom placeholders is good for specific boars settings, mostly like any server uses placeholderapi and the %online% seems redundant.

Ill take a look on the New method used

Just hooking in because I was interested in this aswell. The ability ro register custom placeholders is quite usefull definitly with the API, because plugins and addons can use this to show more advanced placeholders that need specific data. and with this provides different options like event based triggers for updating the placeholder value or even updating the function behind it.

I've used a different plugins api in the past where you could register placeholders internally thru callables, it was possible to update those placeholders aswell with a trigger so I could make sure that all placeholders are updated as I want based on the code thats running at that time. In my opnion a extremely usefull feature for other developers aswell.

jonakls commented 1 year ago

Hi, I just enabled discussions to expand this thread in a more appropriate place. Please, go here