Scorey (Lightweight Scoreboard API) `1.0-SNAPSHOT

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

  1. Gleemingknight
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    http://github.com/GleemingKnight/scorey
    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();
            }
        }
    }

Recent Reviews

  1. keatinglab713
    keatinglab713
    5/5,
    Version: `1.0-SNAPSHOT
    Works great! Better than featherboard & other competitors!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!