mirror of
https://github.com/jie65535/gc-opencommand-plugin.git
synced 2025-06-02 17:49:12 +08:00
Change return type
This commit is contained in:
parent
3bc9b0ab14
commit
67f3eb180d
@ -9,10 +9,10 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
public class SocketData {
|
||||
public static HashMap<String, PlayerList> playerList = new HashMap<>();
|
||||
|
||||
public static PlayerList getPlayer(int uid) {
|
||||
public static String getPlayer(int uid) {
|
||||
for (PlayerList player : playerList.values()) {
|
||||
if (player.playerMap.get(uid) != null) {
|
||||
return player;
|
||||
return player.playerMap.get(uid);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user