public class DedicatedPlayerList extends PlayerList
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
FILE_IPBANS, FILE_OPS, FILE_PLAYERBANS, FILE_WHITELIST, maxPlayers
Constructor and Description |
---|
DedicatedPlayerList(DedicatedServer server) |
Modifier and Type | Method and Description |
---|---|
void |
addOp(com.mojang.authlib.GameProfile profile) |
void |
addWhitelistedPlayer(com.mojang.authlib.GameProfile profile) |
boolean |
bypassesPlayerLimit(com.mojang.authlib.GameProfile profile) |
boolean |
canJoin(com.mojang.authlib.GameProfile profile) |
DedicatedServer |
getServerInstance() |
private void |
loadIPBanList() |
private void |
loadOpsList() |
private void |
loadPlayerBanList() |
private void |
readWhiteList() |
void |
reloadWhitelist() |
void |
removeOp(com.mojang.authlib.GameProfile profile) |
void |
removePlayerFromWhitelist(com.mojang.authlib.GameProfile profile) |
private void |
saveIPBanList() |
private void |
saveOpsList() |
private void |
savePlayerBanList() |
private void |
saveWhiteList() |
void |
setWhiteListEnabled(boolean whitelistEnabled) |
allowUserToConnect, canSendCommands, changePlayerDimension, createPlayerForUser, getAvailablePlayerDat, getBannedIPs, getBannedPlayers, getCurrentPlayerCount, getEntityViewDistance, getFormattedListOfPlayers, getHostPlayerData, getMaxPlayers, getOnlinePlayerNames, getOnlinePlayerProfiles, getOppedPlayerNames, getOppedPlayers, getPlayerAdvancements, getPlayerByUsername, getPlayerByUUID, getPlayerNBT, getPlayers, getPlayersMatchingAddress, getPlayerStatsFile, getViewDistance, getWhitelistedPlayerNames, getWhitelistedPlayers, initializeConnectionToPlayer, isWhiteListEnabled, onTick, playerLoggedIn, playerLoggedOut, preparePlayer, readPlayerDataFromFile, recreatePlayerEntity, reloadResources, removeAllPlayers, saveAllPlayerData, sendMessage, sendMessage, sendMessageToAllTeamMembers, sendMessageToTeamOrAllPlayers, sendPacketToAllPlayers, sendPacketToAllPlayersInDimension, sendScoreboard, sendToAllNearExcept, serverUpdateMovingPlayer, setCommandsAllowedForAll, setGameType, setPlayerManager, setViewDistance, syncPlayerInventory, transferEntityToWorld, transferEntityToWorld, transferEntityToWorld, transferPlayerToDimension, transferPlayerToDimension, updatePermissionLevel, updateTimeAndWeatherForPlayer, writePlayerData
public DedicatedPlayerList(DedicatedServer server)
public void setWhiteListEnabled(boolean whitelistEnabled)
setWhiteListEnabled
in class PlayerList
public void addOp(com.mojang.authlib.GameProfile profile)
addOp
in class PlayerList
public void removeOp(com.mojang.authlib.GameProfile profile)
removeOp
in class PlayerList
public void removePlayerFromWhitelist(com.mojang.authlib.GameProfile profile)
removePlayerFromWhitelist
in class PlayerList
public void addWhitelistedPlayer(com.mojang.authlib.GameProfile profile)
addWhitelistedPlayer
in class PlayerList
public void reloadWhitelist()
reloadWhitelist
in class PlayerList
private void saveIPBanList()
private void savePlayerBanList()
private void loadIPBanList()
private void loadPlayerBanList()
private void loadOpsList()
private void saveOpsList()
private void readWhiteList()
private void saveWhiteList()
public boolean canJoin(com.mojang.authlib.GameProfile profile)
canJoin
in class PlayerList
public DedicatedServer getServerInstance()
getServerInstance
in class PlayerList
public boolean bypassesPlayerLimit(com.mojang.authlib.GameProfile profile)
bypassesPlayerLimit
in class PlayerList