Random Death Messages

Share scripts you wrote for Denizen-Bukkit here!
Post Reply
GoMinecraft
New
New
Posts: 8
Joined: November 23rd, 2019, 11:05 am
Location: Phoenix, AZ
Contact:

Random Death Messages

Post by GoMinecraft » November 24th, 2019, 12:47 am

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
Last edited by GoMinecraft on November 27th, 2019, 11:57 am, edited 10 times in total.

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 236
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: Random Death Messages

Post by mcmonkey » November 24th, 2019, 1:41 am

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).
Denizen lead developer.
http://mcmonkey.org

GoMinecraft
New
New
Posts: 8
Joined: November 23rd, 2019, 11:05 am
Location: Phoenix, AZ
Contact:

Re: Random Death Messages

Post by GoMinecraft » November 24th, 2019, 12:48 pm

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>

GoMinecraft
New
New
Posts: 8
Joined: November 23rd, 2019, 11:05 am
Location: Phoenix, AZ
Contact:

Re: Random Death Messages

Post by GoMinecraft » November 26th, 2019, 1:51 pm

Updated:
  • Massive rewrite, no distro'd as a zip since it now comes with pre-filled YAML files.

GoMinecraft
New
New
Posts: 8
Joined: November 23rd, 2019, 11:05 am
Location: Phoenix, AZ
Contact:

Re: Random Death Messages

Post by GoMinecraft » November 26th, 2019, 2:08 pm

One more quick update:
  • Add check for MythicMobs being installed along with Depenizen.

GoMinecraft
New
New
Posts: 8
Joined: November 23rd, 2019, 11:05 am
Location: Phoenix, AZ
Contact:

Re: Random Death Messages

Post by GoMinecraft » November 26th, 2019, 5:20 pm

+ 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/

GoMinecraft
New
New
Posts: 8
Joined: November 23rd, 2019, 11:05 am
Location: Phoenix, AZ
Contact:

Re: Random Death Messages

Post by GoMinecraft » November 26th, 2019, 6:25 pm

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

GoMinecraft
New
New
Posts: 8
Joined: November 23rd, 2019, 11:05 am
Location: Phoenix, AZ
Contact:

Re: Random Death Messages

Post by GoMinecraft » November 27th, 2019, 11:55 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests