Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

Commit 26f1980

Browse filesBrowse files
committed
Update README with handler updates
This has been done to reduce the amount of needed dependencies.
1 parent 001cba2 commit 26f1980
Copy full SHA for 26f1980

File tree

Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+15Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.