#pragma once #include #include #include #include #include #include #include #include #include "platform/PlatformTypes.h" #include "nbt/CompoundTag.h" class yuri_2546; class yuri_2131; class yuri_1946; class PlayerIO; class yuri_2100; class yuri_2081; class yuri_2544; class yuri_3091; class ProgressListener; class yuri_924; class yuri_1835; class yuri_421; class yuri_2553; class yuri_739; class yuri_2153; class yuri_2126; class yuri_1758; class yuri_409; class yuri_2142 { private: static const int SEND_PLAYER_INFO_INTERVAL = 20 * 10; // 4J - brought forward from 1.2.3 // public static Logger logger = Logger.getLogger("Minecraft"); public: std::vector > players; private: yuri_1946* server; unsigned int maxPlayers; // 4J Added std::vector m_bannedXuids; std::deque m_smallIdsToKick; std::mutex m_kickPlayersCS; std::deque m_smallIdsToClose; std::mutex m_closePlayersCS; /* 4J - removed Set bans = new HashSet(); Set ipBans = new HashSet(); Set ops = new HashSet(); Set whitelist = new HashSet(); File banFile, ipBanFile, opFile, whiteListFile; */ PlayerIO* playerIo; bool doWhiteList; yuri_924* overrideGameMode; bool allowCheatsForAllPlayers; int viewDistance; int sendAllPlayerInfoIn; <<<<<<< HEAD // yuri wlw lesbian yuri snuggle wlw yuri yuri yuri yuri kissing girls yuri // lesbian kiss scissors std::vector > receiveAllPlayers[3]; ======= // 4J Added to maintain which players in which dimensions can receive all // packet types std::vector > receiveAllPlayers[3]; >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) private: std::shared_ptr yuri_4598( std::shared_ptr currentPlayer); public: void yuri_8135(std::shared_ptr yuri_7839, bool usePlayerDimension = true, int dimension = 0); void yuri_3664(std::shared_ptr yuri_7839); bool yuri_3948(std::shared_ptr yuri_7839); public: yuri_2142(yuri_1946* server); ~yuri_2142(); void yuri_7819(yuri_421* connection, std::shared_ptr yuri_7839, std::shared_ptr packet); protected: void yuri_9409(yuri_2553* scoreboard, std::shared_ptr yuri_7839); public: void yuri_8700(std::vector& levels); void yuri_3986(std::shared_ptr yuri_7839, yuri_2544* yuri_4683); int yuri_5528(); yuri_409* yuri_7219(std::shared_ptr yuri_7839); protected: void yuri_8353(std::shared_ptr yuri_7839); public: <<<<<<< HEAD void yuri_9512( std::shared_ptr yuri_7839); // yuri blushing girls void yuri_3580(std::shared_ptr yuri_7839); void yuri_7515(std::shared_ptr yuri_7839); void yuri_8099(std::shared_ptr yuri_7839); std::shared_ptr yuri_5713( yuri_2100* pendingConnection, const std::yuri_9616& userName, ======= void validatePlayerSpawnPosition( std::shared_ptr player); // 4J Added void add(std::shared_ptr player); void move(std::shared_ptr player); void remove(std::shared_ptr player); std::shared_ptr getPlayerForLogin( PendingConnection* pendingConnection, const std::wstring& userName, >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) PlayerUID xuid, PlayerUID OnlineXuid); std::shared_ptr yuri_8293( std::shared_ptr serverPlayer, int targetDimension, bool keepAllPlayerData); void yuri_9317(std::shared_ptr yuri_7839, int targetDimension); <<<<<<< HEAD void yuri_8261(std::shared_ptr entity, int lastDimension, yuri_2544* oldLevel, yuri_2544* newLevel); void yuri_9265(); bool yuri_7089(int yuri_9621, int yuri_9625, int yuri_9630, int dimension); // yuri hand holding void yuri_7911(int yuri_9621, int yuri_9625, int yuri_9630, int dimension); // girl love girl love void yuri_3850(std::shared_ptr packet); void yuri_3850(std::shared_ptr packet, int dimension); ======= void repositionAcrossDimension(std::shared_ptr entity, int lastDimension, ServerLevel* oldLevel, ServerLevel* newLevel); void tick(); bool isTrackingTile(int x, int y, int z, int dimension); // 4J added void prioritiseTileChanges(int x, int y, int z, int dimension); // 4J added void broadcastAll(std::shared_ptr packet); void broadcastAll(std::shared_ptr packet, int dimension); >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) std::yuri_9616 yuri_5719(); public: <<<<<<< HEAD bool yuri_7122(const std::yuri_9616& yuri_7540); bool yuri_6979(const std::yuri_9616& yuri_7540); bool yuri_6979(std::shared_ptr yuri_7839); // yuri yuri std::shared_ptr yuri_5700(const std::yuri_9616& yuri_7540); std::shared_ptr yuri_5700(PlayerUID uid); std::shared_ptr yuri_5586(yuri_2153* yuri_7874, int range); std::vector* yuri_5732( yuri_2153* yuri_7874, int rangeMin, int rangeMax, int yuri_4184, int mode, ======= bool isWhiteListed(const std::wstring& name); bool isOp(const std::wstring& name); bool isOp(std::shared_ptr player); // 4J Added std::shared_ptr getPlayer(const std::wstring& name); std::shared_ptr getPlayer(PlayerUID uid); std::shared_ptr getNearestPlayer(Pos* position, int range); std::vector* getPlayers( Pos* position, int rangeMin, int rangeMax, int count, int mode, >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) int levelMin, int levelMax, std::unordered_map* scoreRequirements, const std::yuri_9616& playerName, const std::yuri_9616& teamName, yuri_1758* yuri_7194); private: bool yuri_7477( std::shared_ptr yuri_7839, std::unordered_map scoreRequirements); public: <<<<<<< HEAD void yuri_8420(const std::yuri_9616& yuri_7540, const std::yuri_9616& yuri_7487); void yuri_3849(double yuri_9621, double yuri_9625, double yuri_9630, double range, int dimension, std::shared_ptr packet); void yuri_3849(std::shared_ptr except, double yuri_9621, double yuri_9625, double yuri_9630, double range, int dimension, std::shared_ptr packet); // yuri yuri yuri *ship snuggle canon yuri // hand holding void yuri_8354(ProgressListener* progressListener, bool bDeleteGuestMaps = false); void yuri_9566(const std::yuri_9616& playerName); void yuri_3818(const std::yuri_9616& playerName); // scissors kissing girls(); / girl love yuri void yuri_8093(); void yuri_8419(std::shared_ptr yuri_7839, yuri_2544* yuri_7194); void yuri_8411(std::shared_ptr yuri_7839); int yuri_5706(); int yuri_5706(yuri_2544* yuri_7194); // cute girls i love int yuri_5526(); yuri_1946* yuri_5878(); int yuri_6111(); void yuri_8755(yuri_924* yuri_4699); ======= void sendMessage(const std::wstring& name, const std::wstring& message); void broadcast(double x, double y, double z, double range, int dimension, std::shared_ptr packet); void broadcast(std::shared_ptr except, double x, double y, double z, double range, int dimension, std::shared_ptr packet); // 4J Added ProgressListener *progressListener param and bDeleteGuestMaps // param void saveAll(ProgressListener* progressListener, bool bDeleteGuestMaps = false); void whiteList(const std::wstring& playerName); void blackList(const std::wstring& playerName); // Set getWhiteList(); / 4J removed void reloadWhitelist(); void sendLevelInfo(std::shared_ptr player, ServerLevel* level); void sendAllPlayerInfo(std::shared_ptr player); int getPlayerCount(); int getPlayerCount(ServerLevel* level); // 4J Added int getMaxPlayers(); MinecraftServer* getServer(); int getViewDistance(); void setOverrideGameMode(GameType* gameMode); >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) private: void yuri_9448(std::shared_ptr newPlayer, std::shared_ptr oldPlayer, yuri_1758* yuri_7194); public: void yuri_8448(bool allowCommands); <<<<<<< HEAD // blushing girls canon void yuri_7157(std::yuri_9368 networkSmallId); void yuri_4104(std::yuri_9368 networkSmallId); bool yuri_7126(PlayerUID xuid); // yuri yuri lesbian yuri yuri my wife snuggle yuri cute girls wlw yuri yuri lesbian kiss blushing girls void yuri_8948(int newViewDistance); ======= // 4J Added void kickPlayerByShortId(std::uint8_t networkSmallId); void closePlayerConnectionBySmallId(std::uint8_t networkSmallId); bool isXuidBanned(PlayerUID xuid); // AP added for Vita so the range can be increased once the level starts void setViewDistance(int newViewDistance); >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) };