Scorey (Lightweight Scoreboard API) icon

Scorey (Lightweight Scoreboard API) -----

A lightweight, easy to use, extremely performance neutral scoreboard api



This is a Scoreboard API made by me, it's extremely useful & easy to use.

How to use
Code (Java):
// Main Class
public class ExamplePlugin extends JavaPlugin {
    public void onEnable ( ) {
        // Register a scorey helper in on-enable
        // Also provide a default board
        new Scorey ( this, new ScoreboardHelper ( ), "default-board" ) ;
    }
}

// Scoreboard Helper Class
public class ScoreboardHelper extends ScoreyHelper {
    public ScoreboardHelper ( ) {
        super ( "&6&lScoreboard Title" ) ;
    }

    @ScoreyBoard (name = "default-board" )
    public List <String > defaultBoard (Player player ) {
        List <String > lines = new ArrayList <> ( ) ;

        lines. add ( "&7&m------------------------" ) ;
        lines. add ( "&fHello, &4" + player. getName ( ) + "&f, this" ) ;
        lines. add ( "&fis the default scoreboard." ) ;
        lines. add ( "&7&m------------------------" ) ;

        return lines ;
    }

    @ScoreyBoard (name = "cool-board" )
    public List <String > defaultBoard (Player player ) {
        List <String > lines = new ArrayList <> ( ) ;

        lines. add ( "&7&m------------------------" ) ;
        lines. add ( "&fHello, &4" + player. getName ( ) + "&f, this" ) ;
        lines. add ( "&fis the cool scoreboard." ) ;
        lines. add ( "&7&m------------------------" ) ;

        return lines ;
    }
}

// Listener to change scoreboard
public class ScoreboardListener implements Listener {
    @EventHandler
    public void onChat (AsyncPlayerChatEvent e ) {
        if (e. getPlayer ( ). getMessage ( ). equals ( "i'm cool" ) ) {
            // You can update a single players scoreboard using
            ScoreyPlayer. setScoreboard (e. getPlayer ( ). getUniqueId ( ), "cool-board" ) ;
        }

        if (e. getPlayer ( ). getMessage ( ). equals ( "we're all cool" ) ) {
            // You can update all players scoreboards
            // including new player joins by using
            ScoreyPlayer. setDefaultScoreboard ( "cool-board" ) ;
            ScoreyPlayer. updateAllDefault ( ) ;
        }
    }
}
Resource Information
Author:
----------
Total Downloads: 109
First Release: Jan 25, 2021
Last Update: Jan 25, 2021
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings