Skip to content
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

Commit d1de192

Browse files
committed
Merge branch 'master' of https://github.com/MC-API/uuid-java
2 parents 60197d2 + 26f1980 commit d1de192

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@ uuid-java [![Build Status](http://build.mc-api.net/buildStatus/icon?job=uuid-jav
33

44
A Java implementation of the [mc-api.net](https://mc-api.net) API.
55

6+
## Custom Handlers
7+
8+
A handler decides how to get a uuid or username. The default handler will just query the API and then cache the result. However you can create your own, custom handler.
9+
10+
There are two premade for [Bukkit](https://bukkit.org)/[Spigot](http://spigotmc.org) and [BungeeCord](https://github.com/spigotmc/bungeecord):
11+
- [Bukkit Handler](https://gist.github.com/njb-said/cec2f56907e8eaa54021)
12+
- [Bungee Handler](https://gist.github.com/njb-said/39e1b0fdebc18b02fc14)
13+
14+
Just implement these somewhere within your project and then set it as the active handler using this example (example is for the BungeeHandler.
15+
```java
16+
UUIDAPI.setHandler(new BungeeHandler());
17+
```
18+
19+
**We suggest you put it in the package:** `net.mcapi.uuid.handlers`
20+
621
## Implementation
722

823
**Setting request server**

0 commit comments

Comments
 (0)