Skip to content

Commit 3507fbc

Browse files
committed
Added README.md
1 parent f7ef11d commit 3507fbc

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
```

0 commit comments

Comments
 (0)