Commit Graph

12 Commits

Author SHA1 Message Date
YouHaveTrouble 263190daa9 possibly fix false negative check when worldguard is involved 2026-05-03 19:01:25 +02:00
YouHaveTrouble fccd413cf8 prevent null players being forwarded to events and message sending logic edge case 2025-06-19 11:39:54 +02:00
YouHaveTrouble 636ccf516c fix broken pvp state check 2025-06-17 16:11:27 +02:00
YouHaveTrouble 23fc50ac46 fix exception raised with no worldguard enabled 2025-05-14 17:11:40 +02:00
YouHaveTrouble d013eabd02 check for worldguard force pvp region within pvp check 2025-02-28 12:08:06 +01:00
YouHaveTrouble c6f0df5d50 account for more edge cases and improve checknig for protected entities 2024-11-01 12:37:06 +01:00
YouHaveTrouble d3e8b590cb folia scheduling part MXIV 2024-04-16 17:24:10 +02:00
YouHaveTrouble c369c110e5 possible workaround for folia compatibility 2024-04-16 16:29:26 +02:00
YouHaveTrouble 47ade3e0c0 Refactor PreventStabby plugin to enhance PvP and environment controls
Reconfiguration of the PreventStabby plugin involved removal of PlayerDamageListener and the introduction of two new listeners: EnvironmentalListener and PvpListener. This restructuring allows more efficient management of entity damage and environmental interactions. EnvironmentalListener specifically caters for dangerous situations such as bucket spills and block fires. PvpListener effectively manages PvP related activities including damages, splash potion effects, cloud area effects, and fishing events ensuring a more streamlined control and response for better PvP gameplay.
2024-03-04 18:24:22 +01:00
YouHaveTrouble 096599081b Improve exception handling and PvP process in DatabaseSQLite and PlayerManager
Refactored exception handling in DatabaseSQLite to use logger instead of printStackTrace() for better error tracking. Streamlined player PvP process in PlayerManager with clear conditions and appropriate responses. Enhancements in other classes were also made to ensure smooth execution and maintain code standards.
2024-03-02 16:57:32 +01:00
YouHaveTrouble 58a4a9f25d combat tracking is working again! 2024-02-28 20:09:56 +01:00
YouHaveTrouble 1aeb245666 Refactor damage source checking and restructure player management
The source of damage detection for PvP interactions has been updated to improve accuracy and flexibility. A 'Target' sub-class has been implemented in the PlayerManager class, removing the need for a separate DamageCheck class. The PlayerManager class was also moved to the 'data' package. Distribution of feedback messages has been simplified using the new DamageCheckResult class.
2024-02-24 19:23:54 +01:00