-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Introductory notes - **This update is recommended because it contains many improvements and bug fixes.** - The update is backward compatible with **v0.5.x** - If you are already using BedcoreProtect **v0.5.x** and you upgrade to **v0.6.0, you will notice a message of database upgrading**. Don't worry, that's normal. It's the patch manager process that updates the database tables for the new version. **If during the process you got a crash, please open a issue [here](https://github.com/matcracker/BedcoreProtect/issues/new/choose)!** # Changelog (Last update: 08/05/2020) The update is not finished yet and the changelog could be updated in any time. ## Features - Added /bcp undo command _(Permission: bcp.subcommand.undo)_. Allows to undo the last rollback/restore. - Now block restrictions works. So, is now possible to include/exclude certain blocks during a rollback or a lookup. - When a player spawn an entity through a spawn egg is now logged. - When a entity dies due to a block (e.g. fire, lava, etc...) is now logged. - When a player ignites a TNT is now logged. - Code analyzed with PHPStan level 8. ## Improvements - With SQLite the data will be saved every 5 minutes (same as worlds) instead of 5 hours. - Re-wrote query execution code getting a speed up! - Most of queries when executed are now scheduled in order by preventing missing or wrong logs. - Improved the QueryGenerator execution. - Improved painting break tracking. - Removed tiles when rollback placed blocks. - General minor improvements. ## Changes - The patch manager is now able to patch a different numbers of patches for each database type. - From now in the database version of status command (/bcp status) will be applied a suffix indicating if the current database version is backward compatible. _(e.g. - Database version: v0.6.1 (Backward Compatible))_ - Default SQLite database file name is now **logs.db**. (This change is backward compatible) ## Bug fixes - Fixed #9 - Fixed #12 - Fixed an issue not allowing inspector to getting logs of the replaced block. - Fixed crash during the rollback of entities. - Fixed possible issue with command permission check order. - Fixed order of plugin data folder creation. - Fixed wrong position calculation of liquid tracking. - Fixed correct meta value (damage) when placing block. - Fixed wrong restore of bed and doors when placed. - Fixed duplicated door log when breaking. - Fixed block burning rollback not correctly working some times. - Fixed purge command not correctly working on SQLite. - Fixed excessive log during inventory transaction. - Fixed database file creation on start-up not taking the choosed file name in the config. - Fixed possibles crashes relative to null values while tracking. - When rollback an area containing blocks with light source, the light will try to be updated. (This avoid empty light areas) - Don't log anymore players when they die. It causes a crash while rollback.
- Loading branch information
1 parent
fed38e1
commit af4634d
Showing
58 changed files
with
2,854 additions
and
1,621 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/.idea | ||
/src/poggit | ||
/src/JackMD | ||
/vendor/pocketmine | ||
/libs | ||
/scripts | ||
/.php_cs.cache | ||
TODO |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
parameters: | ||
level: max | ||
checkMissingIterableValueType: false | ||
paths: | ||
- /source/src | ||
autoload_files: | ||
- phar:///pocketmine/PocketMine-MP.phar/vendor/autoload.php | ||
autoload_directories: | ||
- /source/src | ||
- /deps | ||
ignoreErrors: | ||
- | ||
message: "#^Method matcracker\\\\BedcoreProtect\\\\enums\\\\Action\\:\\:getAll\\(\\) should return array\\<matcracker\\\\BedcoreProtect\\\\enums\\\\Action\\> but returns array\\<object\\>\\.$#" | ||
count: 1 | ||
path: /source/src/matcracker/BedcoreProtect/enums/Action.php | ||
|
||
- | ||
message: "#^Method matcracker\\\\BedcoreProtect\\\\enums\\\\Action\\:\\:fromString\\(\\) should return matcracker\\\\BedcoreProtect\\\\enums\\\\Action but returns object\\.$#" | ||
count: 1 | ||
path: /source/src/matcracker/BedcoreProtect/enums/Action.php |
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
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
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
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
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
--- | ||
# !!! DON'T EDIT THIS FILE !!! | ||
# --- YAML Patch format --- | ||
# [VERSION]: | ||
# sqlite: [NUMBER_OF_PATCHES] (For SQLite) | ||
# mysql: [NUMBER_OF_PATCHES] (For MySQL) | ||
# ------------------------- | ||
0.6.0: | ||
sqlite: 16 | ||
mysql: 4 | ||
... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
-- #!mysql | ||
-- #{patch | ||
-- # {0.6.0 | ||
-- # {1 | ||
ALTER TABLE log_history ADD UNIQUE(log_id); | ||
-- # } | ||
-- # {2 | ||
ALTER TABLE blocks_log ADD UNIQUE(history_id); | ||
-- # } | ||
-- # {3 | ||
ALTER TABLE entities_log ADD UNIQUE(history_id); | ||
-- # } | ||
-- # {4 | ||
ALTER TABLE inventories_log ADD UNIQUE(history_id); | ||
-- # } | ||
-- # } | ||
-- #} |
Oops, something went wrong.