Timing for unique events and can intersect

Discussion in 'Spigot Plugin Development' started by Orionweblab, May 3, 2017.

  1. Please Read:
    So when you join Mineplex (example, I thought it was the most simple one) You get 4 news titles like:

    MINEPLEX
    blah blah
    MINEPLEX
    yeah yeah
    MINEPLEX
    etc etc
    MINEPLEX
    Yay! Our final message!

    I'm pretty sure there has to be timings between the titles but how do you do that when during showing the titles for one player, if another player joins, then it will also show the other player the titles too.

    My question is, how do you get these timings in my plugin?

    (A timing that can have be retriggered while one is already running)

    All help will be appreciated!
     
  2. What do you mean by you get 'titles'?
     
  3. The giant text that appears on screen in large letters and are so annoying xD
     
  4. NathanWolf

    Supporter

    Why would one player see the other player's titles? Titles are sent to specific players.

    They likely just have a scheduler that starts on join and steps through a series of titles and delays until it's done. Should be simple enough.
     
    • Agree Agree x 1
  5. probably a repeating task that takes each element (title message) from a queue, until its pushed every element out of the queue. also, it would not 'intersect' as you say, as each packet is being sent to every player individually, otherwise, when someone joins, and you've already been on, you'd also get the message.
     
    • Agree Agree x 2
  6. Thanks for the help! I'm kind of a "new player" so how would I do that?