How to get an offline player by UUID?
问题 How to get an offline player by UUID? I can get an online player by UUID by iterating through all online players and return when an UUID matches, but I don't know how to do this for offline players. 回答1: Beta build of CraftBukkit (1.7.9-R0.1) has the method you need in org.bukkit.Server interface: /** * Gets the player by the given UUID, regardless if they are offline or * online. * <p> * This will return an object even if the player does not exist. To this * method, all players will exist. *