aternosorg / codex-minecraft

PHP library to read, parse, print and analyse Minecraft log files.
https://packagist.org/packages/aternos/codex-minecraft
MIT License
31 stars 7 forks source link

Remove ".paper-remapped/" from plugin path #91

Closed pavog closed 3 weeks ago

pavog commented 1 month ago

In the latest version 1.21, Paper has changed some internals so that the plugins are apparently loaded from the path /plugins/.paper-remapped/ instead of /plugins/. This also causes the error messages to change the plugin path from /plugins/<filename> to /plugins/.paper-remapped/<filename>.

We extract the plugin path from the log and use it in the problem message that we display to the user. We also use the plugin path to display it in solutions. E.g.: Delete the file plugins/.paper-remapped/mclogs-bukkit-dev.jar. But the user cannot see or access the .paper-remapped folder, so they cannot delete the file from there. This can lead to confusion. Therefore, this PR changes this behavior and replaces the path /plugins/.paper-remapped/ with /plugins/ in all places.

In addition, this PR changes the following: