File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # ScoreboardAPI [ ![ ] ( https://jitpack.io/v/IWareQ/ScoreboardAPI.svg )] ( https://jitpack.io/#IWareQ/ScoreboardAPI )
2+
3+ ScoreboardAPI is a simple library plugin for PowerNukkit/Nukkit Minecraft Bedrock core, that will help you to create
4+ your custom scoreboards with ease.
5+
6+ ##### [ Download] ( https://github.com/IWareQ/ScoreboardAPI/releases )
7+
8+ ## Usage
9+
10+ ``` java
11+ Scoreboard scoreboard = new Scoreboard (" Test Scoreboard" , (sb, player) - > {
12+ sb. addLine(player. getName());
13+ sb. addLine(" §1" ); // used for skip line
14+ sb. addLine(" random: " + Math . random());
15+ sb. addLine(" random: " + Math . random());
16+ sb. addLine(" random: " + Math . random());
17+ sb. addLine(" random: " + Math . random());
18+ sb. addLine(" random: " + Math . random());
19+ sb. addLine(" §2" ); // used for skip line
20+ sb. addLine(" Online: " + Server . getInstance(). getOnlinePlayers(). size());
21+ }, 2 ); // in seconds
22+ ```
23+
24+ ## Maven
25+
26+ #### Repository
27+
28+ ``` xml
29+ <repositories >
30+ <repository >
31+ <id >jitpack.io</id >
32+ <url >https://jitpack.io</url >
33+ </repository >
34+ </repositories >
35+ ```
36+
37+ #### Dependency
38+ ``` xml
39+ <dependency >
40+ <groupId >com.github.IWareQ</groupId >
41+ <artifactId >ScoreboardAPI</artifactId >
42+ <version >Tag</version >
43+ </dependency >
44+ ```
You can’t perform that action at this time.
0 commit comments