public class DedicatedPlayerManager extends PlayerManager
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
BANNED_IPS_FILE, BANNED_PLAYERS_FILE, maxPlayers, OPERATORS_FILE, WHITELIST_FILE
Constructor and Description |
---|
DedicatedPlayerManager(MinecraftDedicatedServer server,
DynamicRegistryManager.Impl tracker,
WorldSaveHandler saveHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addToOperators(com.mojang.authlib.GameProfile profile) |
boolean |
canBypassPlayerLimit(com.mojang.authlib.GameProfile profile) |
MinecraftDedicatedServer |
getServer() |
boolean |
isWhitelisted(com.mojang.authlib.GameProfile profile) |
private void |
loadIpBanList() |
private void |
loadOpList() |
private void |
loadUserBanList() |
private void |
loadWhitelist() |
void |
reloadWhitelist() |
void |
removeFromOperators(com.mojang.authlib.GameProfile profile) |
private void |
saveIpBanList() |
private void |
saveOpList() |
private void |
saveUserBanList() |
private void |
saveWhitelist() |
void |
setWhitelistEnabled(boolean whitelistEnabled) |
areCheatsAllowed, broadcastChatMessage, checkCanJoin, createPlayer, createStatHandler, disconnectAllPlayers, getAdvancementTracker, getCurrentPlayerCount, getIpBanList, getMaxPlayerCount, getOpList, getOpNames, getPlayer, getPlayer, getPlayerList, getPlayerNames, getPlayersByIp, getUserBanList, getUserData, getViewDistance, getWhitelist, getWhitelistedNames, isOperator, isWhitelistEnabled, loadPlayerData, onDataPacksReloaded, onPlayerConnect, remove, respawnPlayer, saveAllPlayerData, savePlayerData, sendCommandTree, sendPlayerStatus, sendScoreboard, sendToAll, sendToAround, sendToDimension, sendToOtherTeams, sendToTeam, sendWorldInfo, setCheatsAllowed, setGameMode, setMainWorld, setViewDistance, updatePlayerLatency
private static final Logger LOGGER
public DedicatedPlayerManager(MinecraftDedicatedServer server, DynamicRegistryManager.Impl tracker, WorldSaveHandler saveHandler)
public void setWhitelistEnabled(boolean whitelistEnabled)
setWhitelistEnabled
in class PlayerManager
public void addToOperators(com.mojang.authlib.GameProfile profile)
addToOperators
in class PlayerManager
public void removeFromOperators(com.mojang.authlib.GameProfile profile)
removeFromOperators
in class PlayerManager
public void reloadWhitelist()
reloadWhitelist
in class PlayerManager
private void saveIpBanList()
private void saveUserBanList()
private void loadIpBanList()
private void loadUserBanList()
private void loadOpList()
private void saveOpList()
private void loadWhitelist()
private void saveWhitelist()
public boolean isWhitelisted(com.mojang.authlib.GameProfile profile)
isWhitelisted
in class PlayerManager
public MinecraftDedicatedServer getServer()
getServer
in class PlayerManager
public boolean canBypassPlayerLimit(com.mojang.authlib.GameProfile profile)
canBypassPlayerLimit
in class PlayerManager