mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +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
1 changed files with 7 additions and 0 deletions
|
@ -1307,4 +1307,11 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||||
* @param book The book to open for this player
|
* @param book The book to open for this player
|
||||||
*/
|
*/
|
||||||
public void openBook(@NotNull ItemStack book);
|
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 a new issue