Configuration Guide
Config file path:
plugins/DeathMark/config.yml
Run/deathMark reloadafter editing to apply the changes
# I. Full Config
# Enable update notifications, recommended
isCheckUpdate: true
# Send update notifications when an OP logs in
isCheckUpdateToOpMsg: true
# Language file
language: zh_CN
# Maximum number of marks
maxMark: 5
# Time required to reduce 1 mark (in minutes) (child nodes can be freely extended and modified, permission format: DeathMark.markTask.vip1)
markTask:
# Time for default players
default: 3
# vip1 time, requires permission DeathMark.markTask.vip1
vip1: 2
# vip2 time, requires permission DeathMark.markTask.vip2
vip2: 1
# vip3 time, requires permission DeathMark.markTask.vip3
vip3: 1
# Buff type, currently supports attribute_plus, sx_attribute, AttributeSystem, MythicLib or potionEffect
buffType: "potionEffect"
# Worlds where death does not add marks
whiteList:
- "spawn"
# Attribute buff granted per mark level, extend it based on your maximum mark count
markAttrBuff:
1:
# Death notification
message: "&7You have died, current death mark level: &a1&7, gained level 1 negative potion effect (disappears after 3 minutes)"
# Death debuff
buff:
- 'WEAKNESS:1:3600:false'
2:
message: "&7You have died, current death mark level: &a2&7, gained level 2 negative potion effect (downgraded after 3 minutes)"
buff:
- 'WEAKNESS:2:3600:false'
- 'HUNGER:2:3600:false'
3:
message: "&7You have died, current death mark level: &a3&7, gained level 3 negative potion effect (downgraded after 3 minutes)"
buff:
- 'WEAKNESS:3:3600:false'
- 'HUNGER:3:3600:false'
- 'SLOWNESS:3:3600:false'
4:
message: "&7You have died, current death mark level: &a4&7, gained level 4 negative potion effect (downgraded after 3 minutes)"
buff:
- 'WEAKNESS:4:3600:false'
- 'HUNGER:4:3600:false'
- 'SLOWNESS:4:3600:false'
- 'MINING_FATIGUE:4:3600:false'
5:
message: "&7You have died, current death mark level: &a5&7, gained level 5 negative potion effect (downgraded after 3 minutes)"
buff:
- 'WEAKNESS:5:3600:false'
- 'HUNGER:5:3600:false'
- 'SLOWNESS:5:3600:false'
- 'MINING_FATIGUE:5:3600:false'
- 'UNLUCK:5:3600:false'
# II. Basic Config
| Config | Default | Description |
|---|---|---|
isCheckUpdate | true | Enable update notifications, recommended |
isCheckUpdateToOpMsg | true | Send update notifications when an OP logs in |
language | zh_CN | Language file, e.g. zh_CN, en_US |
maxMark | 5 | Maximum number of marks, no stacking beyond it |
# III. Mark Reduction Time
markTask configures the time needed to reduce 1 mark, in minutes. Child nodes can be freely extended and modified.
markTask:
# Time for default players
default: 3
# vip1 time, requires permission DeathMark.markTask.vip1
vip1: 2
# vip2 time, requires permission DeathMark.markTask.vip2
vip2: 1
| Node | Description | Permission |
|---|---|---|
default | Default player | None |
vip1 | vip1 player | DeathMark.markTask.vip1 |
vip2 | vip2 player | DeathMark.markTask.vip2 |
The node name is the permission suffix. When adding child nodes, grant permissions in the format
DeathMark.markTask.<node name>
# IV. Buff Types
buffType determines which attribute plugin format the buff entries under markAttrBuff use. The following types are supported:
| Value | Description |
|---|---|
potionEffect | Vanilla potion effects |
attribute_plus | AttributePlus (opens new window) |
sx_attribute | SX-Attribute (opens new window) |
AttributeSystem | AttributeSystem (opens new window) |
MythicLib | MythicLib (opens new window) |
Each type has its own attribute format, write entries in the format of the corresponding attribute plugin
# V. Whitelisted Worlds
Players who die in a world listed in whiteList do not receive a mark.
whiteList:
- "lobby"
# VI. Per-Level Mark Config
markAttrBuff configures the death notification and negative effects for each mark level. Levels can be extended freely.
markAttrBuff:
1:
# Death notification
message: "&7You have died, current death mark level: &a1&7, gained level 1 negative potion effect (disappears after 3 minutes)"
# Death debuff
buff:
- 'WEAKNESS:1:3600:false'
| Node | Description |
|---|---|
message | Message sent on death, supports color codes |
buff | List of negative effects applied on death, multiple lines allowed |
For the potionEffect type, the buff format is potion_type:level:duration:hide_particles, for example:
SPEED:2:3600:true
SPEEDpotion type, see PotionEffectType (opens new window)2potion level3600duration, in tickstruewhether to hide potion particles
When using other
buffTypevalues,buffmust follow the format of the corresponding attribute plugin