[DLM] Death Location Message

[DLM] Death Location Message

170 Downloads

Description

This is example plugin for setting up private message of your death location.

You can pretty customize message form, notification work and more...

Use command /dl for show message about ur latest death location! 

Plugin.yml

This section can be broken on curseforge :/

set:
#0 - not autosend msg
#1 - send when player die
#2 - send when died player respawn
send_mode: 1

msg:
#%environment% - show world type where u die, for example: "NETHER", "NORMAL", "THE-END"
#%x% - x coordinates
#%y% - x coordinates
#%z% - x coordinates
#%distance% - show distance from your current location to your death location, for example: "438 blocks away", "unknown blocks away (other world)".
#%time% - show how time ago u died, for example: "23s ago", "1d 4h 12m 54s ago", "just now"
death_msg: "&6You died on %environment%-world, location: x:%x% y:%y% z:%z% (%distance%) %time%."
#Message that send if u never die for that session
default_msg: "&6You never die in this session"

snd:
#Enable the sound notification of message
enable: true
#Type of instrument
#BASS_DRUM, BASS_GUITAR, BELL, CHIME, FLUTE, GUITAR, PIANO, SNARE_DRUM, STICKS, XYLOPHONE
instrument: BELL
#Note number
note: 1

P.S

This is my first plugin