#677: Add "Allow Server Listings" API

By: Noah van der Aa <ndvdaa@gmail.com>
This commit is contained in:
Bukkit/Spigot 2021-11-23 08:56:03 +11:00
parent 1594310d44
commit a05a566ae7

View File

@ -1307,4 +1307,11 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param book The book to open for this player
*/
public void openBook(@NotNull ItemStack book);
/**
* Gets whether the player has the "Allow Server Listings" setting enabled.
*
* @return whether the player allows server listings
*/
public boolean isAllowingServerListings();
}