mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 05:16:55 +00:00
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.
This commit is contained in:
@@ -71,9 +71,6 @@ public class PluginMessages {
|
||||
}
|
||||
|
||||
public static void sendOutMessages(DamageCheckResult damageCheckResult) {
|
||||
if (damageCheckResult.victimId() != null && damageCheckResult.feedbackForVictim() != null) {
|
||||
sendActionBar(damageCheckResult.victimId(), damageCheckResult.feedbackForVictim());
|
||||
}
|
||||
if (damageCheckResult.attackerId() != null && damageCheckResult.feedbackForAttacker() != null) {
|
||||
sendActionBar(damageCheckResult.attackerId(), damageCheckResult.feedbackForAttacker());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user