mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
#758: Add missing server properties methods from 1.19
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -853,6 +853,22 @@ public interface Server extends PluginMessageRecipient {
|
||||
*/
|
||||
public void setSpawnRadius(int value);
|
||||
|
||||
/**
|
||||
* Gets whether the server should send a preview of the player's chat
|
||||
* message to the client when the player types a message
|
||||
*
|
||||
* @return true if the server should send a preview, false otherwise
|
||||
*/
|
||||
public boolean shouldSendChatPreviews();
|
||||
|
||||
/**
|
||||
* Gets whether the server only allow players with Mojang-signed public key
|
||||
* to join
|
||||
*
|
||||
* @return true if only Mojang-signed players can join, false otherwise
|
||||
*/
|
||||
public boolean isEnforcingSecureProfiles();
|
||||
|
||||
/**
|
||||
* Gets whether the Server hide online players in server status.
|
||||
*
|
||||
@@ -1156,6 +1172,15 @@ public interface Server extends PluginMessageRecipient {
|
||||
@NotNull
|
||||
Merchant createMerchant(@Nullable String title);
|
||||
|
||||
/**
|
||||
* Gets the amount of consecutive neighbor updates before skipping
|
||||
* additional ones.
|
||||
*
|
||||
* @return the amount of consecutive neighbor updates, if the value is
|
||||
* negative then the limit it's not used
|
||||
*/
|
||||
int getMaxChainedNeighborUpdates();
|
||||
|
||||
/**
|
||||
* Gets user-specified limit for number of monsters that can spawn in a
|
||||
* chunk.
|
||||
|
Reference in New Issue
Block a user