Class PlayerList

    • Field Detail

      • USERBANLIST_FILE

        public static final java.io.File USERBANLIST_FILE
      • IPBANLIST_FILE

        public static final java.io.File IPBANLIST_FILE
      • OPLIST_FILE

        public static final java.io.File OPLIST_FILE
      • WHITELIST_FILE

        public static final java.io.File WHITELIST_FILE
      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • BAN_DATE_FORMAT

        private static final java.text.SimpleDateFormat BAN_DATE_FORMAT
      • playersByUUID

        private final java.util.Map<java.util.UUID,​ServerPlayerEntity> playersByUUID
      • ops

        private final OpList ops
      • whitelist

        private final WhiteList whitelist
      • advancements

        private final java.util.Map<java.util.UUID,​PlayerAdvancements> advancements
      • doWhiteList

        private boolean doWhiteList
      • maxPlayers

        protected final int maxPlayers
      • viewDistance

        private int viewDistance
      • overrideGameMode

        private GameType overrideGameMode
      • allowCheatsForAllPlayers

        private boolean allowCheatsForAllPlayers
      • sendAllPlayerInfoIn

        private int sendAllPlayerInfoIn
    • Method Detail

      • setLevel

        public void setLevel​(ServerWorld p_212504_1_)
      • canPlayerLogin

        @Nullable
        public ITextComponent canPlayerLogin​(java.net.SocketAddress p_206258_1_,
                                             com.mojang.authlib.GameProfile p_206258_2_)
      • getPlayerForLogin

        public ServerPlayerEntity getPlayerForLogin​(com.mojang.authlib.GameProfile p_148545_1_)
      • sendPlayerPermissionLevel

        public void sendPlayerPermissionLevel​(ServerPlayerEntity p_187243_1_)
      • tick

        public void tick()
      • broadcastAll

        public void broadcastAll​(IPacket<?> p_148540_1_)
      • getPlayerNamesArray

        public java.lang.String[] getPlayerNamesArray()
      • getBans

        public BanList getBans()
      • op

        public void op​(com.mojang.authlib.GameProfile p_152605_1_)
      • deop

        public void deop​(com.mojang.authlib.GameProfile p_152610_1_)
      • sendPlayerPermissionLevel

        private void sendPlayerPermissionLevel​(ServerPlayerEntity p_187245_1_,
                                               int p_187245_2_)
      • isWhiteListed

        public boolean isWhiteListed​(com.mojang.authlib.GameProfile p_152607_1_)
      • isOp

        public boolean isOp​(com.mojang.authlib.GameProfile p_152596_1_)
      • getPlayerByName

        @Nullable
        public ServerPlayerEntity getPlayerByName​(java.lang.String p_152612_1_)
      • broadcast

        public void broadcast​(@Nullable
                              PlayerEntity p_148543_1_,
                              double p_148543_2_,
                              double p_148543_4_,
                              double p_148543_6_,
                              double p_148543_8_,
                              RegistryKey<World> p_148543_10_,
                              IPacket<?> p_148543_11_)
      • saveAll

        public void saveAll()
      • getWhiteList

        public WhiteList getWhiteList()
      • getWhiteListNames

        public java.lang.String[] getWhiteListNames()
      • getOps

        public OpList getOps()
      • getOpNames

        public java.lang.String[] getOpNames()
      • reloadWhiteList

        public void reloadWhiteList()
      • getPlayerCount

        public int getPlayerCount()
      • getMaxPlayers

        public int getMaxPlayers()
      • isUsingWhitelist

        public boolean isUsingWhitelist()
      • setUsingWhiteList

        public void setUsingWhiteList​(boolean p_72371_1_)
      • getPlayersWithAddress

        public java.util.List<ServerPlayerEntity> getPlayersWithAddress​(java.lang.String p_72382_1_)
      • getViewDistance

        public int getViewDistance()
      • getSingleplayerData

        public CompoundNBT getSingleplayerData()
      • setOverrideGameMode

        public void setOverrideGameMode​(GameType p_152604_1_)
      • setAllowCheatsForAllPlayers

        public void setAllowCheatsForAllPlayers​(boolean p_72387_1_)
      • removeAll

        public void removeAll()
      • broadcastMessage

        public void broadcastMessage​(ITextComponent p_232641_1_,
                                     ChatType p_232641_2_,
                                     java.util.UUID p_232641_3_)
      • setViewDistance

        public void setViewDistance​(int p_217884_1_)
      • getPlayer

        @Nullable
        public ServerPlayerEntity getPlayer​(java.util.UUID p_177451_1_)
      • canBypassPlayerLimit

        public boolean canBypassPlayerLimit​(com.mojang.authlib.GameProfile p_183023_1_)
      • reloadResources

        public void reloadResources()
      • isAllowCheatsForAllPlayers

        public boolean isAllowCheatsForAllPlayers()