Skip to content

Commit 5978c27

Browse files
authored
Update README.md
1 parent 286de7c commit 5978c27

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,28 @@ through a user-friendly dashboard. A little known fact is that it has an API whi
99
While building a bot with JDA around Mee6 player statistics, I found that there was no public wrappers for Mee6, so I built one. I thought I would share this with the community in case someone else needed it. :D
1010

1111
![Jason](http://i.imgur.com/sXXQy61.png)
12+
13+
**Using Mee6API Object**:
14+
```java
15+
public class Example
16+
{
17+
public static void main(String[] args)
18+
{
19+
//Note u must build a corresponding JDA with the Server's ID
20+
Mee6API mee = new Mee6API("222123744959660032");
21+
22+
//Grab a player by ID
23+
Players player = mee.getPlayer("157692073699573761");
24+
25+
//An output of their level
26+
System.out.println(player.getLevel());
27+
}
28+
29+
@Override
30+
public void onEvent(Event event)
31+
{
32+
if (event instanceof ReadyEvent)
33+
System.out.println("API is ready!");
34+
}
35+
}
36+
```

0 commit comments

Comments
 (0)