
CombatKeepInventory
Player combat tagging and death inventory control for Bukkit-based Minecraft servers.
Список изменений
Note: This is an alpha release; some listed features may not work. While version 1.2.0 functions well, it still contains some bugs. I do not recommend using this version for a production server until the official release is available, unless you are using it for feature testing.
1. Combat Session Improvements
The current session has been upgraded from merely tracking that a player is in combat to a CombatSession structure:
CombatSession
├── player
├── attacker
├── startedAt
├── lastActivityAt
├── expiresAt
└── state
2. More accurate Damage Attribution Instead of DeathService having to infer the cause itself, DamageAttributionService will provide clearer information:
├── Damage
├── attacker
├── victim
├── cause
├── timestamp
└── source
3. Expanded InventoryPolicy
This is the third major change.
Instead of the policy revolving solely around keepInventory, version 1.2.5 can distinguish between:
PLAYER_KILL
COMBAT_LOGOUT
MOB_DEATH
ENVIRONMENT_DEATH
UNKNOWN
Example:
inventory:
player-kill: DROP
combat-logout: DROP
mob-death: KEEP
environment-death: KEEP
unknown: VANILLA
