You can manage multiple scoreboards with this plugin. zEssentials uses the FastBoard library to create scoreboards with packets. You don't need to install any other plugins for this module to work.
Configuration
########################################################################################################################
## ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ# ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ# âââââââââââââââââââââââââââââââââââââââââââââââĻâââââââââââââââââââââââââââââââââ# ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ# âââââââââââââââââââââââââââââââââââââââââââââââĻâââââââââââââââââââââââââââââââââ# ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ## Documentation: https://zessentials.groupez.dev/modules/scoreboard# FastBoard: https://github.com/MrMicky-FR/FastBoard#########################################################################################################################
enable:true# The conditions when connecting the player to choose the scoreboard# When connecting the scoreboard displayed will be the one with the highest priority and or the player to all requirements
join-conditions: - priority:0scoreboard:default - priority:1scoreboard:admin# For requirements please use zMenu: https://docs.zmenu.dev/configurations/buttons/requirementsrequirements: - type:permissionpermission:"zessentials.scoreboard.admin"# Enables task for conditionsenable-task-conditions:false# The second interval for conditionstask-conditions-interval:2# Conditions that will be checked all x seconds to change scoreboardtask-conditions: - scoreboard:event# For requirements please use zMenu: https://docs.zmenu.dev/configurations/buttons/requirementsrequirements: - type:placeholderplaceholder:"%player_world%"value:"event"action:EQUALS_STRINGscoreboards:default:default:truetitle:"#53edd6zEssentials"lines: - line:1text:"" - line:2text:"&7Balance: &a%zessentials_user_formatted_balance_money%"event:"fr.maxlego08.essentials.api.event.events.user.UserEconomyPostUpdateEvent" - line:3text:"&7Coins: &a%zessentials_user_formatted_balance_coins%"event:"fr.maxlego08.essentials.api.event.events.user.UserEconomyPostUpdateEvent" - line:4text:"" - line:5text:"play.essentials.fr"animation:COLOR_WAVEfromColor:"#5599ff"toColor:"#ffffff"length:5# animation lengthdelayBetween:5000# in millisecondsanimationSpeed:30# in millisecondsadmin:title:"#53edd6zEssentials"lines: - line:1text:"" - line:2text:"&7Balance: &a%zessentials_user_formatted_balance_money%"event:"fr.maxlego08.essentials.api.event.events.user.UserEconomyPostUpdateEvent" - line:3text:"&7Coins: &a%zessentials_user_formatted_balance_coins%"event:"fr.maxlego08.essentials.api.event.events.user.UserEconomyPostUpdateEvent" - line:4text:"&7Rank: &cAdmin" - line:5text:"" - line:6text:"play.essentials.fr"animation:COLOR_WAVEfromColor:"#5599ff"toColor:"#ffffff"length:5# animation lengthdelayBetween:5000# in millisecondsanimationSpeed:30# in milliseconds
How to create a scoreboard ?
To create a scoreboard he must give it a title and a list of lines. To add a line, you can also specify an animation and an event. Please look at the default condifuration to understand how to properly create a scoreboard.
Events
To update your scoreboard, you can use the event system. This system allows you to avoid using tasks for updating placeholders. Traditional plugins often use tasks unnecessarily, which updates data continuously for all players. zEssentials aims to be as optimized as possible, making the event system the most efficient option. When a player performs an action on your server, an event is triggered (whether by Spigot, Paper, Folia, or even zEssentials). The configuration listens for the event you specified for the line and updates only that line.
In the default configuration we have the use of the event UserEconomyPostUpdateEvent to update line 2 and 3. When the playerâs money is going to be changed, his scoreboard will be updated automatically.
You do not need to specify the type of animation, you only need to set the time in milliseconds for the update.
COLOR_WAVE
text:"play.essentials.fr"animation:COLOR_WAVEfromColor:"#5599ff"toColor:"#ffffff"length:5# animation lengthdelayBetween:5000# in millisecondsanimationSpeed:30# in milliseconds
This animation will allow to create a wave of color from a start to an end color. The plugin will automatically calculate the colors between your two colors, in the example if above we will start from a blue color to a white. You can also configure the animation size, the delay between each animation and the animation refresh speed.