mirror of
https://github.com/jie65535/gc-opencommand-plugin.git
synced 2025-10-20 17:12:58 +08:00
Change return type
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user