Repository navigation
-
Features:
- Introduced ifera-mc/update-notifier for update notifications.
-
Bug Fixes:
- Warns: Corrected an issue where the original timestamp of a WarnEntry was lost upon loading from storage; the timestamp is now correctly preserved.
- Command: Resolved duration handling in WarnCommand to prevent errors when no duration is provided and ensured proper reason setting with single arguments. Improved command execution error handling.
-
Refactoring & Optimizations:
- Removed src-namespace-prefix.
- Utils Class:
- Optimized and modernized the Utils class by simplifying parseDurationString logic.
- Enhanced readability with direct type hints and short-circuiting.
- Utilized match expressions in formatDuration for clearer control flow.
- Improved maintainability through cleaned-up variable handling and concise comments.
- Expired Warnings Task: Optimized the expired warnings task by skipping players who have no warnings, improving efficiency.
- WarnList Class: Simplified and reduced complexity in the WarnList class by encapsulating WarnEntry creation and exception handling within a createWarnEntry method, improving readability and maintainability.
- WarnEntry: Improved data validation within the fromArray method of the WarnEntry class.