Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #Permission
- perm:autorespawn.default
- #DeathMessage
- deathmessage:&a[&f%victim%&a] Had &cKilled &aBy
- player-killer:&4%attacker% &7-&7%attacker's health%&4?
- lava-message:&a[&f%victim%&a] &7Tried To Swim In &6Lava&7.
- drowning-message:&a[&f%victim%&a] &bdrowned&7.
- fall-message:&a[&f%victim%&a] &7Had Fell Down.
- explosion-message:&a[&f%victim%&a] &6Blown Up&7.
- void-message:&a[&f%victim%&a] &7Fell Out Of The &0World&7.
- suffocation-message:&a[&f%victim%&a] &7suffocated in the &fwall&7.
- magic-message:&a[&f%victim%&a] &7killed by &DMagic.
- #AutoRespawn
- on death:
- wait 3 tick
- if player has the permission "{@perm}":
- force respawn player
- #Death Message
- on death of player:
- if attacker is not lava and water and fire and fall and entity explosion and block explosion and void and suffocation:
- set death message to "{@deathmessage} {@player-killer}"
- stop
- if damage cause is lava:
- wait 2 tick
- set death message to "{@lava-message}"
- stop
- if damage cause is drowning:
- set death message to "{@drowning-message}"
- delete death message
- stop
- if damage cause is fall:
- set death message to "{@fall-message}"
- stop
- if damage cause is entity explosion:
- set death message to "{@explosion-message}"
- stop
- if damage cause is block explosion:
- set death message to "{@explosion-message}"
- delete death message
- stop
- if damage cause is void:
- set death message to "{@void-message}"
- stop
- if damage cause is suffocation:
- set death message to "{@suffocation-message}"
- stop
- if damage was caused by potion:
- set the death message to "{@magic-message}"
Add Comment
Please, Sign In to add comment