A framework to create easy and fast scoreboards in PocketMine-MP

Overview

ScoreboardLib

A framework to create easy and fast scoreboards in PocketMine-MP

How to use the Scoreboard API?

First declare the file as:

use isrdxv\scoreboard\Scoreboard

Then create the instance with the 'Player Class' and 'Title', in this case Test Scoreboard

// must have class: pocketmine\player\Player

$scoreboard = Scoreboard::create($player, "Test Scoreboard");

Now spawn the scoreboard to add your line

$scoreboard->spawn();

How do I add a line to the scoreboard? simple as this

$scoreboard->setLine(0, "https://github.com/iSrDxv");

You want to delete the scoreboard, do the following

$scoreboard->remove();

Or do you want to delete a specific line? here is the code to remove it

//You must go the number of the line you want to delete if you will not delete an incorrect line

$scoreboard->removeLine(0);

Or do you go for the easiest to, remove all lines? do this from once man

$scoreboard->removeAllLine();

Or better you don't want to delete anything but add all the lines you want just once? I recommend this

//remember this is in beta, I haven't tested it and I think it has bugs anyway open a pull request

$scoreboard->setAllLine([

  "linea 1",

  "linea 2",

  "linea 3", 

  "wallenetwork.xyz"

]);
You might also like...
PocketMine-MP virion for easy handling of ScoreBoard packets

PocketMine-MP virion for easy handling of ScoreBoard packets

⚡ Php snippets, random stuff, demos, functions, fast message system, agnostic and framework free - 100% compactible ;) ⚡
⚡ Php snippets, random stuff, demos, functions, fast message system, agnostic and framework free - 100% compactible ;) ⚡

⚡ Php8 FPM Nginx Fast, Scripts, Pearls & Treasures 🚀 Want to run and test asap ? docker-compose up -d phpgit_php8;ip=$(docker-machine ip default);ech

This Kirby V3 Plugin brings snippets and blueprints together in one place. It includes useful tools that completely changing the way you work with Kirby: Fast and well organized.
This Kirby V3 Plugin brings snippets and blueprints together in one place. It includes useful tools that completely changing the way you work with Kirby: Fast and well organized.

Kirby Components Overview Do you love to make awesome projects with Kirby CMS? Do you also find it difficult to switch between snippets and blueprints

Easy Repository pattern for PHP Phalcon framework.

Phalcon Repositories Introduction Phalcon Repositories lets you easily build repositories for your Phalcon models, for both SQL and Mongo drivers. PHP

Very easy to use a current limiting component, the code is very simple, based on the webman framework.

Very easy to use a current limiting component, the code is very simple, based on the webman framework.

A simple and fast pmmp js es6 promise virion

Promises A simple and fast pmmp js es6 promise virion Api usage these examples are in base injectable php these should be easily transferable. Example

Prepare your Laravel apps incredibly fast, with various commands, services, facades and boilerplates.

Grafite Builder Grafite has archived this project and no longer supports or develops the code. We recommend using only as a source of ideas for your o

A fast, reliable, and secure NPM/Yarn bridge for Composer

Foxy is a Composer plugin to automate the validation, installation, updating and removing of PHP libraries asset dependencies (javaScript, stylesheets

Build lightning-fast and feature-rich websites with ProcessWire.

WIREKIT Core Build lightning-fast and feature-rich websites with ProcessWire. Website: wirekit.dev (in plans) Demo: start.wirekit.dev/core/ Updates: W

Owner
Claudio T.
Game Developer and Web Developer
Claudio T.
Fast friending system for PocketMine server owners!

QuickFriends ✔ Friend requests and /f block ✔ List friends and check if their online ✔ Customize command messages ✔ Configure worlds players can /f jo

DiamondStrider1 4 Aug 18, 2022
A virion for PocketMine-MP to create and manage fake blocks

?? fakeblocks Create and manage fakeblocks Description: A virion for PocketMine-MP to create and manage fake blocks. This virion indicates to the clie

null 13 Nov 16, 2022
Greyhole uses Samba to create a storage pool of all your available hard drives, and allows you to create redundant copies of the files you store.

Greyhole Greyhole is an application that uses Samba to create a storage pool of all your available hard drives (whatever their size, however they're c

Guillaume Boudreau 245 Dec 18, 2022
A plugin manager for PocketMine-MP downloads plugin from PocketMine-MP official plugin repository

oh-my-pmmp A plugin manager for PocketMine-MP Getting Started Prerequisites Your server MUST RUN the latest version of PocketMine. Installation From P

thebigcrafter 6 Jan 4, 2023
A useful PocketMine-MP plugin that allows you to create crates in-game!

ComplexCrates A useful PocketMine-MP plugin that allows you to create crates in-game! Commands Main command: /crate Sub commands: create

Oğuzhan 8 Aug 26, 2021
Plugin pocketmine 4.0.0 for create simple rank 🎈

RankEasy Simple plugin to create ranks ?? Config: # YAML #https://www.digminecraft.com/lists/color_list_pc.php for all color in minecraft default: "

null 4 Aug 28, 2022
✨A simple way to create a GUI on servers based on PocketMine-MP 4.0!✨

FakeInventories ✨ A simple way to create a GUI on servers based on PocketMine-MP 4.0! ✨ (https://youtu.be/D1NIx8E2UPg) Features Fast opening without a

iDarkQ 6 Nov 20, 2022
Create warp for your PocketMine-MP Server

WarpSystem Features Warps are registered as commands Warps can require permissions Warps are easy to setup Commands /warp (see all warps name) /warp (

null 4 Jan 5, 2023
Elevator - A simple PocketMine-MP plugin that allows to create elevators on your server

Elevator - A simple PocketMine-MP plugin that allows to create elevators on your server. How to use You just have to setup an id in the config.yml. Plac

AethTeam 2 Sep 4, 2022
Create easy (and almost magic) forms

Why Magic Forms? Almost everyday we do forms for our clients, personal projects, etc Sometimes we need to add or remove fields, change validations, st

Martin M. 16 Dec 20, 2022