Discussion in 'Plugin Development' started by ArthurHoeke, Sep 28, 2014.
EDIT by Moderator: merged posts, please use the edit button instead of double posting.
A loop becomes more difficult, you'd have to change the string yourself every few ticks, so "ABCD" => "BCDE" => "CDEF" => "DEFA" and so on.
Same goes for color, so with a few ticks one more letter is colored.
Zupsub Can you give me a code example please?
ArthurHoeke We aren't going to spoon feed you. Is your question how to make this without BarAPI? Or schedule the bar to change every few seconds?
Skionz I want to use BarAPI for this, But my question is how to change the bossbar message color every x seconds
Look for Bukkit Scheduler. It has it's own wiki page.
Zupsub Altready looked at that but I dont see a way to do it with that
Schedule a repeating task every x seconds which changes the bar message.
ArthurHoeke Pretty basic logic. Not sure how bar api works but basically you would spawn an enderdragon client side to create the bar. Then every 5 seconds you would remove the client side dragon and spawn a new one with a different name.
Skionz I know, But how to change the text? Beceause you can just make a scheduler but how to let it change in a specific order
Remove the enderdragon which barAPI probably has a method for then create a new dragon and change the name like that.
I have no idea how to do it with BarAPI. Go read the documentation I am sure they have a method for it
Skionz I know this already! I know how barapi works, But the problem is is how can I make that it changes the text in a certain serie? Like when the text is Test with the t green, The next text must be Test with the e green too
3: change the whole string in the scheduler (can't be that hard, ey)
I'm to lazy to help but this guy made a great tutorial on what you'r wanting to know
Copy paste alot of strings xP
Or just use substring.
Separate names with a comma.