Scavenger
Save inventory and experience with penalties
Поля
| Поле | Тип | По умолчанию | Описание | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inventoryLossPercent | Double | 0.0 | Percent of items to lose on death | ||||||||||||||||||||||||
experienceLossPercent | Double | 0.0 | Percent of experience to lose on death | ||||||||||||||||||||||||
protectedItems | List<Var<Item>> | empty | Objets epargnes : jamais perdus a la mort, quel que soit le taux de perte. | ||||||||||||||||||||||||
lostItemsMessage | List<String> | empty | Message sent listing lost items. Use {items} to insert item listПлейсхолдеры | ||||||||||||||||||||||||
penalties | List<Penalty> | empty | Penalties applied when a player dies
|
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
placeholder | String | — | Placeholder returning a numeric valueПлейсхолдеры |
percent | Double | 0.0 | Percent of the value to remove |
message | String | — | Message sent to the player. Use {value} to insert amountПлейсхолдеры |
command | String? | — | Command executed with {value} replaced by amountПлейсхолдеры |
permission | String? | — | Permission required for this penalty |
permissionString?How to use it
On death, the player loses inventoryLossPercent of their items and experienceLossPercent of their experience, unless they lack permission (when set). protectedItems lists item types that are never lost, whatever the percentage (the field was formerly a blacklist, but it protects). Each penalties item reads a numeric placeholder, removes percent of its value, sends message (with {value}) and can run a command with {value} (run by the console; start it with player: to run it as the player). lostItemsMessage lines are sent with {items}.