File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff 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```
You can’t perform that action at this time.
0 commit comments