Muqsit / DeathInventoryLog

A PocketMine-MP plugin that logs inventory contents of players right before their death
https://poggit.pmmp.io/p/DeathInventoryLog
MIT License
9 stars 4 forks source link

Optimization and Refactoring of Death Inventory Log Commands #7

Open Jullius1392 opened 7 months ago

Jullius1392 commented 7 months ago

This pull request makes significant improvements in the management of Death Inventory Log commands. Separate methods have been created for the "history," "restore," and "view" cases, enhancing code modularity and readability. Additionally, specific methods have been added for retrieving and applying logs to the player, as well as for displaying logs to the command sender. These changes aim to ease maintenance and future expansions of the code.

Changes Made:

This pull request is ready for review. Comments and suggestions are appreciated.