Zarius / Bukkit-OtherBlocks

OtherBlocks (now known as OtherDrops) plugin for Bukkit (dev build: https://www.mediafire.com/?i6ows1g6kus2o0l)
http://dev.bukkit.org/server-mods/otherdrops/
GNU General Public License v3.0
17 stars 17 forks source link

[Feature Request] More dynamic variable support (%p, %t etc...) #211

Closed VoxPopuliZombiemold closed 11 years ago

VoxPopuliZombiemold commented 11 years ago

I humbly request more support for dynamic variables like %p and such.

Currently, using %p for a written book's author doesn't work. Colors for written book's data like title and author don't work. Variables like %p don't work within pages of a written book.

I'd love to see other variables like %c for cause of death, %d/&i for current date/time.

One of my goals is to remake the features of the DeathCertificates plugin using Otherdrops (Link here: http://dev.bukkit.org/server-mods/death-certificate/)

It could also be used to make interesting item drops in pvp with names, and fun lore and such.

Zarius commented 11 years ago

Color & variables should work in the latest dev version now for books. %t should show cause of death. Looking to add date and time soon.

Zarius commented 11 years ago

%t will generally show a cause of death but I'm thinking I might just take the actual death message and make a $deathmsg variable for it. Not sure how easy this is though as I don't listen to the playerdeathevent but rather the entitydeathevent.

CelticMinstrel commented 11 years ago

You can probably case EntityDeathEvent to PlayerDeathEvent if needed.