feat(common): 添加新的API
This commit is contained in:
@@ -737,6 +737,20 @@ public abstract class BallAPI {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取玩家的UUID
|
||||
*
|
||||
* @param playerName 玩家名次
|
||||
* @return 玩家的UUID
|
||||
*/
|
||||
public UUID getPlayerUUID(String playerName) {
|
||||
BallPlayerInfo info = getPlayerInfo(playerName);
|
||||
if (info == null) {
|
||||
return null;
|
||||
}
|
||||
return info.getUuid();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取玩家名称
|
||||
*
|
||||
|
Reference in New Issue
Block a user