SHOW:
|
|
- or go back to the newest paste.
1 | public static Player getPlayer(String name) { | |
2 | for (int i = 0; i < Config.MAX_PLAYERS; i++) | |
3 | { | |
4 | if (players[i] != null && players[i].playerName.equalsIgnoreCase(name)) | |
5 | { | |
6 | return players[i]; | |
7 | } | |
8 | } | |
9 | ||
10 | return null; | |
11 | } |