SpongePowered / SpongeAPI

A Minecraft plugin API
http://www.spongepowered.org/
MIT License
1.14k stars 343 forks source link

Add 'title scheduler' to allow plugins to display multiple sequential titles #1881

Open Aaron1011 opened 6 years ago

Aaron1011 commented 6 years ago

Currently, the API allows plugins to send individual Titles to plugins. However, sending a title while another title is in progress will cause one of the titles to be immediately overwritten.

Sponge should provide a utility class to allow a plugin to schedule a sequence of titles to be displayed to the client. This class would take care of scheduling titles to be sent as soon as possible, while ensuring that none of them overwrite each other.

kashike commented 6 years ago

The same is true with other things in the game:

ryantheleach commented 6 years ago

I was thinking this was near useless honestly and that plugins could handle it themselves.

But then I realized it may be needed for cross plugin queuing.

Aaron1011 commented 6 years ago

@kashike: I don't see how scoreboard data fits here - nothing that's displayed on a scoreboard is ephemeral the way that titles and action bar messages are.

XakepSDK commented 6 years ago

At least we can check, if scoreboard exists, but we can't do this with titles+action bar.