Page 1 of 1

Random Death Messages

Posted: November 24th, 2019, 12:47 am
by GoMinecraft
Random Death Messages

This Denizen script makes it so you can have custom death messages when players, you know, die and stuff.

Download Link: https://gominecraft.com/files/RandomDeathMessages.zip

Requirements:
  • Denizen - Required for this to work at all, obviously.
Optional: Install Instructions:
  1. Open the zip file
  2. Extract the contents to the plugins/ directory
It will make one new directory (plugins/RandomDeathMessages) and put RandomDeathMessages.dsc in plugins/Denizen/scripts

Commands:
/randomdeathmessages [version|reload] - Alias: /rdm

Configuration:
RandomDeathMessages requires no configuration out of the box.

If you wish to set your own language, please modify RandomDeathMessages/config.yml and copy the files from RandomDeathMessages/language/en_us/

You may add / edit the messages in plugins/RandomDeathMessages/language/[language]/*.yml

I'm always accepting pull reqs @ https://github.com/gominecraft/RandomDeathMessages

Can you translate the death messages to another language? That would be awesome! Send me a pull request!

Special thanks to
  • mcmonkey - for creating Denizen
  • Wahrheit, Xeane, Icecapade and Nexto for their (scripting) suggestions and various other forms of help

Re: Random Death Messages

Posted: November 24th, 2019, 1:41 am
by mcmonkey
GoMinecraft wrote:
November 24th, 2019, 12:47 am
Capture what a player was killed with in PvP, if possible
Absolutely possible, yes. You can even do the item hover thingy with the advanced formatty tags. (Though to do this, you have to block the message and announce your own, as the event itself doesn't support fancy-formatted messages).

Re: Random Death Messages

Posted: November 24th, 2019, 12:48 pm
by GoMinecraft
Updated:
  • Capture when killed by another player with a bow
  • Capture what a player was killed WITH in melee PvP
  • Capture when shot by dispenser
  • Added simple <[victim]> var, no need to use <player.name>

Re: Random Death Messages

Posted: November 26th, 2019, 1:51 pm
by GoMinecraft
Updated:
  • Massive rewrite, no distro'd as a zip since it now comes with pre-filled YAML files.

Re: Random Death Messages

Posted: November 26th, 2019, 2:08 pm
by GoMinecraft
One more quick update:
  • Add check for MythicMobs being installed along with Depenizen.

Re: Random Death Messages

Posted: November 26th, 2019, 5:20 pm
by GoMinecraft
+ Language support.

All the .yml files will now be in : /plugins/RandomDeathMessages/language/[lang]/

You may remove the yml files in the root of plugins/RandomDeathMessages/

Re: Random Death Messages

Posted: November 26th, 2019, 6:25 pm
by GoMinecraft
There is now a config.yml in plugins/RandomDeathMessages

Contains:

Code: Select all

# Set your language.
# This maps to RandomDeathMessages/language/[language]/
language: en_us

# Generally best to leave this off.
enable_debug_messages: false

Re: Random Death Messages

Posted: November 27th, 2019, 11:55 am
by GoMinecraft
Okay, lots of changes thanks to mcmonkey's criticism/review of this absolutely unmitigated disaster.

+ Fixed potential exploit
+ debug log is now: announce to_console
+ reload command ( /rdm reload )
+ version command (/rdm or /rdm version)
+ Now catches when killed by a pillager.