Solved Simple API clarification

Discussion in 'Spigot Plugin Development' started by Plochem, Oct 26, 2018.

  1. According to the JavaDocs for Bukkit#getPlayer(), it says the following:

    What exactly does the last sentence mean? Does the word "may" mean that there is a possibility of returning objects for offline players? (I highly doubt it though).
  2. Choco


    May does not always imply a possibility. For example, "You may not leave the room" is a definitive statement indicating that the person should not leave under any circumstance. In this case, #getOfflinePlayer() is using that same phrasing. In my opinion I agree with you, "may" was not the correct choice of words, "will" should have been used instead but eh.