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:
Refactoring of the main command logic (onCommand).
Creation of specific methods for "restore" and "view" cases.
Addition of methods for retrieving and applying logs to the player (retrieveAndApplyLog).
Addition of a method for retrieving and displaying logs to the command sender (retrieveAndDisplayLog).
Improvement in code reuse and overall clarity of Death Inventory Log-related code.
This pull request is ready for review. Comments and suggestions are appreciated.
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:
onCommand
).retrieveAndApplyLog
).retrieveAndDisplayLog
).This pull request is ready for review. Comments and suggestions are appreciated.