Early version of specific death messages, needs testing.

This commit is contained in:
nossr50 2010-12-02 18:27:04 -08:00
parent 41c9feb13e
commit f26f5cca73

View File

@ -84,9 +84,24 @@ public class vMinecraftListener extends PluginListener {
if (vMinecraftSettings.getInstance().isEzModo(player.getName())) { if (vMinecraftSettings.getInstance().isEzModo(player.getName())) {
return oldValue > newValue; return oldValue > newValue;
} }
//These are place holders until I make random messages for everything and also to see if these work correctly
if (vMinecraftSettings.getInstance().globalmessages() && newValue < 1) { if (vMinecraftSettings.getInstance().globalmessages() && newValue < 1) {
if (damagetype == 1){
vMinecraftChat.gmsg(player,player.getName() + Colors.Red + " was blown to bits by a creeper");
} else if (damagetype == 2) {
vMinecraftChat.gmsg(player,player.getName() + Colors.Red + " fell to death!");
} else if (damagetype ==3){
vMinecraftChat.gmsg(player, player.getName() + Colors.Red + " was incinerated");
} else if (damagetype == 4){
vMinecraftChat.gmsg(player, Colors.Red + " Stop drop and roll, not scream, run, and burn " + player.getName());
} else if (damagetype == 5){
vMinecraftChat.gmsg(player, Colors.Red + player.getName() + " drowned in lava");
} else if (damagetype == 6){
vMinecraftChat.gmsg(player, Colors.Blue + player.getName() + " should've attended that swimming class");
} else {
vMinecraftChat.gmsg(player, Colors.Gray + player.getName() + " " + vMinecraftSettings.randomDeathMsg()); vMinecraftChat.gmsg(player, Colors.Gray + player.getName() + " " + vMinecraftSettings.randomDeathMsg());
} }
}
return false; return false;
} }