3050af0bc0
ResourcePackManager: validate pack UUIDs
...
fixes CrashArchive ##12248760
2025-02-23 19:45:38 +00:00
cd59e272bc
PHPStan 2.0 fixes
2025-01-07 22:10:42 +00:00
5325ecee37
Deal with a whole lot of PHPStan suppressed key casting errors
...
closes #6534
2024-11-25 14:30:58 +00:00
515f8eae4c
ÂResourcePackManager: allow setting force_resources from a plugin
2023-08-07 17:05:45 +01:00
0d169b4e80
Filesystem: added fileGetContents to reduce ErrorToExceptionHandler boilerplate code
2022-12-25 17:13:51 +00:00
8c0d3943d8
Added length validation for resource pack encryption keys
2022-12-15 22:36:06 +00:00
d02c6668b2
ResourcePackManager: added setPackEncryptionKey()
...
this allows plugins to install their own encrypted resource packs
2022-12-15 22:29:34 +00:00
880d01daea
ResourcePackManager: added setResourceStack()
...
this enables plugins to modify the resource pack stack however they see fit.
Modifying the existing stack can be done by doing array modifications on the result of getResourceStack() and then setting it back again using this method.
2022-12-15 22:10:53 +00:00
50b70708fb
ResourcePackManager: extracted loadPackFromPath() private method from constructor body
2022-12-15 21:59:54 +00:00
99996b62d6
Align PhpDoc @param tags according to PHP-CS-Fixer
2022-12-06 13:21:20 +00:00
7bcc663b60
Migrate core code to using symfony/filesystem
...
webmozart/path-util is retained for plugin compatibility, but is dropped in 5.0
2022-10-14 21:51:29 +01:00
d6bbf8217d
ResourcePackManager: avoid repeated operation
2022-09-28 20:57:17 +01:00
b21cd82e94
Allow specifying a key for encrypted resource packs ( #5297 )
2022-09-28 17:27:33 +01:00
38d6284671
Use PHP-CS-Fixer to enforce file header presence
2022-06-04 17:34:49 +01:00
9e59819f06
Modernize private property declarations in src/resourcepacks
2022-05-17 21:52:07 +01:00
f827a555d5
Merge branch 'stable'
2021-11-01 18:13:24 +00:00
32d7b1e6af
Start using webmozart/pathutil for joining paths ( #4287 )
2021-06-29 19:40:43 +01:00
3e2cfd28cc
ResourcePackManager: change validity check to is_string()
2020-07-17 23:07:37 +01:00
055b13a6cf
strip extra blank lines (php-cs-fixer)
2020-01-22 15:14:10 +00:00
67bcc1c0fb
phpdoc armageddon for master, pass 1
2020-01-22 11:55:03 +00:00
5499ac620c
Removed pocketmine subdirectory, map PSR-4 style
2019-07-30 19:14:57 +01:00