Added something people have wanted for while now...
1.3 Added config option to allow you to adjust the length of the Announcement Shown.
USE THE NEW CONFIG OPTION AT YOUR OWN RISK.
Spigot/Bukkit does not support or have an option to adjust the length of time the action bar message is shown. In ActionAnnouncer I simply run a task that loops x amount of times and resends the message packet which allows it to be shown for x more seconds. What this new option does is basically lets you define how many times this task runs. The reason I say use at your own risk is because if you set the announcement length greater than the interval length, there could be issues as those tasks are going to start over for the next message.
I have tested with the announcement length <= interval time With both times set to the same number, there is no break in the messages and the transition to the new message is seamless.
Here is the new config:
Code (Text):
# ActionAnnouncer v1.3 Main configuration
announcer_enabled: true
announcer_random: false
announce_interval: 10
announcement_length: 10
announcements:
- '&aTest 1'
- '&cTest 2'
- '&bTest 3'
- '&6Test 4'
announce_on_join: true
join_announcement: '&eWelcome to the server &b%player%!'
disable_sounds: false
Also added 2 new commands:
/aa start start auto announcements if they are stopped
/aa stop stop auto announcements if they are enabled