mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 21:37:39 +01:00
#677: Add "Allow Server Listings" API
By: Noah van der Aa <ndvdaa@gmail.com>
This commit is contained in:
parent
1594310d44
commit
a05a566ae7
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user