Skip to content

Commit 1fe9c3b

Browse files
authored
Update README.md
1 parent f4af810 commit 1fe9c3b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,14 @@ public class Example
1616
{
1717
public static void main(String[] args)
1818
{
19-
//Note you must build a corresponding JDA with the Server's ID
19+
//Note you must build a corresponding JDA with the Server's ID
2020
Mee6API mee = new Mee6API("222123744959660032");
2121

22-
//Grab a player by ID
22+
//Grab a player by ID (will output null if Mee6API is not operational)
2323
Players player = mee.getPlayer("157692073699573761");
2424

2525
//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!");
26+
System.out.println(player != null ? player.getLevel() ? "MEE6 API has no record of this member");
3427
}
3528
}
3629
```

0 commit comments

Comments
 (0)