mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 22:22:18 -07:00
Added GameMode methods to Server and HumanEntity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -441,4 +441,18 @@ public interface Server {
|
||||
* @return Set containing banned players
|
||||
*/
|
||||
public Set<OfflinePlayer> getBannedPlayers();
|
||||
|
||||
/**
|
||||
* Gets the default {@link GameMode} for new players
|
||||
*
|
||||
* @return Default game mode
|
||||
*/
|
||||
public GameMode getDefaultGameMode();
|
||||
|
||||
/**
|
||||
* Sets the default {@link GameMode} for new players
|
||||
*
|
||||
* @param mode New game mode
|
||||
*/
|
||||
public void setDefaultGameMode(GameMode mode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user