forked from retromcorg/Project-Poseidon
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge changes from Poseidon #37
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extreme server lag (TPS lag) can be caused due to extremely high entity counts into the thousands. Usually this isn’t a problem as the spawning methods within Bukkit check the amount of mobs already within the world. Mob spawners currently bypass this (with some exceptions) which effectively means under mob spawner conditions spawners will never stop spawning mobs. On RetroMC, this has caused large amounts of lag with people AFKing at mob grinders for prolonged periods causing thousands of mobs to be in a single area drastically impacting TPS. This commit adds a feature to Poseidon which will check 8 chunks surrounding the mob spawner to ensure that the mob cap is under a predefined limit (default 150) of that entity time.
* Created log rotation class * Added log rotation task * removed rotation scheduling * Added log rotation scheduling * Switched to bukkit task scheduling * Renamed variable a to logger * removed un-necessary comments * moved log rotation scheduling instantiation Log rotation was instantiated before all startup tasks were complete, missing logs from startup. Instantiation has not been moved AFTER the server prompts "Done (0.059s)! For help, type "help" or "?"" * Rewrite of log rotation logic. Log rotation logic prior to rewrite moved contents of latest.log into a log with the days date, improperly handling the logs which might contain previous dates e.g. server stopped over midnight. New logic will handle crashes, and logs containing multiple days dates. * Make latest log file optional --------- Co-authored-by: Johny Muffin <[email protected]>
* Add API to figure out block drops and break them * Revert NMS name changes in Block * Revert NMS name changes in EntityHuman * Revert NMS name changes in InventoryPlayer * Revert NMS name changes in Item * Revert NMS name changes in ItemInWorldManager * Revert NMS name changes in Material * Added comments to modified NMS code * Revert NMS name changes in ItemStack * Make Block.dropNaturally non-final again * Reverted the last of the name changes
* Remove Chew repository as it is offline * Change hosting to repository.johnymuffin.com as chew.pw is offline
* Improved UUID handling and updated Mojang API URLs * Resolve configuration bug and add additional debug
* Add API to figure out block drops and break them * Revert NMS name changes in Block * Revert NMS name changes in EntityHuman * Revert NMS name changes in InventoryPlayer * Revert NMS name changes in Item * Revert NMS name changes in ItemInWorldManager * Revert NMS name changes in Material * Added comments to modified NMS code * Revert NMS name changes in ItemStack * Make Block.dropNaturally non-final again * Reverted the last of the name changes * Fixed grass chunk ban
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.