Added 1.14 support, some new API methods (DeathMessagesPrime#getDeathMessage, DeathMessagesPrime#getEventPriority), refactored code and other small changes. Has been tested against 1.14-pre5, but
should work on final 1.14.
Config changes: config-version upped to 44. There are a lot of changes, so I will provide a diff; if you're not sure how to read this, you should regenerate the config.
Code (Text):
--- config43.yml 2019-04-23 20:37:08.334538200 +0300
+++ config44.yml 2019-04-23 20:37:17.128200000 +0300
@@ -9,7 +9,7 @@
# Configuration version, do not change this unless you want your config to be
# reset.
-config-version: 43
+config-version: 44
# World groups.
# If a world is in a group, and a death occurs there, the appropriate death
@@ -157,7 +157,8 @@
# The priority for the listener. Set to lower value if there are any conflicts
# with plugins that provide their own death message systems.
# In order from higher to lower: HIGHEST, HIGH, NORMAL, LOW, LOWEST
-# MONITOR should not be used, as it may cause compatibility problems.
+# MONITOR is UNSUPPORTED - do not use it, as it causes conflicts and may
+# mess with plugins using the API.
# Default: HIGH
death-listener-priority: HIGH
@@ -166,16 +167,12 @@
# Default: false
show-custom-death-msg-on-all-weapons: false
-# =========================================================================
-# THIS FEATURE IS IMPLEMENTED ONLY IN DMP PLUGIN VERSIONS TBA AND ABOVE!!!
-# THIS FEATURE IS IMPLEMENTED ONLY IN DMP PLUGIN VERSIONS TBA AND ABOVE!!!
+# THIS FEATURE IS NOT IMPLEMENTED RIGHT NOW, AS THE API DOES NOT SUPPORT
+# MODIFYING PET DEATH MESSAGES.
# Whether to show death messages for tamed and named pets.
# (true is the vanilla Minecraft behavior)
# Default: true
show-named-pet-death-messages: true
-# THIS FEATURE IS IMPLEMENTED ONLY IN DMP PLUGIN VERSIONS TBA AND ABOVE!!!
-# THIS FEATURE IS IMPLEMENTED ONLY IN DMP PLUGIN VERSIONS TBA AND ABOVE!!!
-# =========================================================================
# Messages for enabling and disabling death messages using /toggledeathmsg
death-messages-hidden: "&a[DMP] &aOthers' death messages will now be HIDDEN"
@@ -221,6 +218,8 @@
- "%plrtag% was slain by Blaze"
BlazeFireball:
- "%plrtag% was fireballed by Blaze"
+ Cat:
+ - "%plrtag% was slain by Cat"
CaveSpider:
- "%plrtag% was slain by Cave Spider"
Chicken:
@@ -257,6 +256,8 @@
- "%plrtag% was slain by Endermite"
Evoker:
- "%plrtag% was slain by Evoker"
+ Fox:
+ - "%plrtag% was slain by Fox"
Ghast:
- "%plrtag% was fireballed by Ghast"
Giant:
@@ -281,18 +282,30 @@
- "%plrtag% was slain by Mooshroom"
Mule:
- "%plrtag% was slain by Mule"
+ Panda:
+ - "%plrtag% was slain by Panda"
Parrot:
- "%plrtag% was slain by Parrot"
Phantom:
- "%plrtag% was slain by Phantom"
Pig:
- "%plrtag% was slain by Pig"
+ PillagerArrow:
+ - "%plrtag% was shot by Pillager"
+ PillagerMelee:
+ - "%plrtag% was slain by Pillager"
+ PillagerArrowCustom:
+ - "%plrtag% was shot by Pillager using [%weapon%&f]"
+ PillagerCustom:
+ - "%plrtag% was slain by Pillager using [%weapon%&f]"
PolarBear:
- "%plrtag% was slain by Polar Bear"
PufferFish:
- "%plrtag% was slain by Puffer Fish"
Rabbit:
- "%plrtag% was slain by Rabbit"
+ Ravager:
+ - "%plrtag% was slain by Ravager"
Salmon:
- "%plrtag% was slain by Salmon"
Sheep:
@@ -333,6 +346,8 @@
- "%plrtag% was slain by Vex"
Vindicator:
- "%plrtag% was slain by Vindicator"
+ WanderingTrader:
+ - "%plrtag% was slain by Wandering Trader"
Witch:
- "%plrtag% was killed by Witch using magic"
Wither:
@@ -366,6 +381,8 @@
- "%plrtag% was slain by %killer%"
BlazeFireball:
- "%plrtag% was fireballed by %killer%"
+ Cat:
+ - "%plrtag% was slain by %killer%"
CaveSpider:
- "%plrtag% was slain by %killer%"
Chicken:
@@ -402,6 +419,8 @@
- "%plrtag% was slain by %killer%"
Evoker:
- "%plrtag% was slain by %killer%"
+ Fox:
+ - "%plrtag% was slain by %killer%"
Ghast:
- "%plrtag% was fireballed by %killer%"
Giant:
@@ -426,18 +445,30 @@
- "%plrtag% was slain by %killer%"
Mule:
- "%plrtag% was slain by %killer%"
+ Panda:
+ - "%plrtag% was slain by %killer%"
Parrot:
- "%plrtag% was slain by %killer%"
Phantom:
- "%plrtag% was slain by %killer%"
Pig:
- "%plrtag% was slain by %killer%"
+ PillagerArrow:
+ - "%plrtag% was shot by %killer%"
+ PillagerMelee:
+ - "%plrtag% was slain by %killer%"
+ PillagerArrowCustom:
+ - "%plrtag% was shot by %killer% using [%weapon%&f]"
+ PillagerCustom:
+ - "%plrtag% was slain by %killer% using [%weapon%&f]"
PolarBear:
- "%plrtag% was slain by %killer%"
PufferFish:
- "%plrtag% was slain by %killer%"
Rabbit:
- "%plrtag% was slain by %killer%"
+ Ravager:
+ - "%plrtag% was slain by %killer%"
Salmon:
- "%plrtag% was slain by %killer%"
Sheep:
@@ -480,6 +511,8 @@
- "%plrtag% was slain by %killer%"
Vindicator:
- "%plrtag% was slain by %killer%"
+ WanderingTrader:
+ - "%plrtag% was slain by %killer%"
Witch:
- "%plrtag% was killed by %killer% using magic"
Wither:
@@ -574,6 +607,10 @@
- "%plrtag% discovered floor was lava"
MagmaKill:
- "%plrtag% walked into danger zone due to %killer%"
+ BerryBush:
+ - "%plrtag% was poked to death by a sweet berry bush"
+ BerryBushKill:
+ - "%plrtag% was poked to death by a sweet berry bush whilst trying to escape %killer%"
Lava:
- "%plrtag% tried to swim in lava"
LavaKill:
@@ -645,6 +682,7 @@
mob-names:
Bat: "Bat"
Blaze: "Blaze"
+ Cat: "Cat"
CaveSpider: "Cave Spider"
Chicken: "Chicken"
Cod: "Cod"
@@ -658,6 +696,7 @@
Enderman: "Enderman"
Endermite: "Endermite"
Evoker: "Evoker"
+ Fox: "Fox"
Ghast: "Ghast"
Giant: "Giant"
Guardian: "Guardian"
@@ -669,13 +708,16 @@
MagmaCube: "Magma Cube"
Mooshroom: "Mooshroom"
Mule: "Mule"
+ Panda: "Panda"
Parrot: "Parrot"
Phantom: "Phantom"
Pig: "Pig"
+ Pillager: "Pillager"
PolarBear: "Polar Bear"
PufferFish: "Puffer Fish"
Ocelot: "Ocelot"
Rabbit: "Rabbit"
+ Ravager: "Ravager"
Salmon: "Salmon"
Sheep: "Sheep"
Shulker: "Shulker"
@@ -692,6 +734,7 @@
Vex: "Vex"
Villager: "Villlager"
Vindicator: "Vindicator"
+ WanderingTrader: "Wandering Trader"
Witch: "Witch"
Wither: "Wither"
WitherSkeleton: "Wither Skeleton"