DeathMessages

De Nefald Wiki
Aller à la navigation Aller à la recherche


DeathMessages
DeathMessages
Plugin
Catégorie Messages système [edit]
Développeur(s) Mayhem777
Bukkit death-messages
Nefald
Status installé [edit]
Grade requis Citoyen
Article
Dernière révision 27/07/2013


DeathMessages permet de configurer les messages système, notamment ceux ayant attrait à la mort d'un joueur, et ce de façon quasi illimité pour l'imagination.
Il est entre autre possible, et c'est un luxe, de configurer plusieurs messages pour une même action

Commandes et permissions

Puisque avec ce plugin tout se passe dans la configuration, une seule commande lui est connue

commande description permission
/deathmessages reload ou /dm reload Reload de la configuration dm.admin.commands

Configuration

Couleur Code Nom
&0 Black
&1 Dark Blue
&2 Dark Green
&3 Dark Aqua
&4 Dark Red
&5 Purple
&6 Gold
&7 Gray
&8 Dark Gray
&9 Blue
&a Green
&b Aqua
&c Red
&d Light Purple
&e Yellow
&f White

La configuration de DeathMessages est on ne peut plus simple, rédigez vos messages avec des codes couleurs (tableau de droite), des variables, des caractères spéciaux et beaucoup d'imagination!



Exemple
  • Pour obtenir : thekom a été assassiné par Uti
  • Je mettrais dans le fichier de configuration : &a%player &7a été assassiné par &3%killer &f%[simbol1]

Variables

Variable Résultat
%player Le nom du joueur (de la victime)
%killer Le nom de l'assassin (uniquement pour le PVP)
%weapon_material Affiche le type d'arme employé par l'assassin.
%weapon_name Affiche le nom de l'arme, en lieu et place du type d'arme, si elle n'a pas de nom, ce sera le type qui sera affiché. ( le nom que vous attribuez à un objet grâce à l'enclume )
%world Nom du monde où le joueur est mor.

Caractères spéciaux

Variable Caractère
%[n] ñ
%[a1] á
%[a2] à
%[a3] â
%[e1] é
%[e2] è
%[e3] ê
%[i1] í
%[i2] ì
%[i3] î
%[o1] ó
%[o2] ò
%[o3] ô
%[u1] ú
%[u2] ù
%[u3] û
%[a4] å
%[a5] ä
%[o4] ö
%[u4] ü
%[simbol1]
%[ae] æ
%[o5] ø

Fichier de configuration


#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# About Plugin/Author #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Plugin Name: Death Messages
# Author: Goty
# Bukkit Profile: http://dev.bukkit.org/profiles/Mayhem777/
# Description: Change the Default Bukkit Death Messages as you Wish, including colors, victim name, killer name and weapon/material/name...  also other General messages as Join/Kick/Leave.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# About Plugin/Author #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# Plugin Version #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Don't change this or your config will be renamed to "old_config.yml" and the correct config.yml version will be created.
Version: 2.6.1
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# Plugin Version #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# Debugging #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
### Enabling this option will BROADCAST useful data about the Death Process, which will be useful to find plugins conflicting with Bukkit normal events.
# You'll be able to check: Victim Name, World Name, Last Damage Cause Type, Last Damage Cause (Reason), and Damager.
Debug: false
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# Debugging #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

#====================================== PvP Messages ======================================#
### What to do with PvP Death Messages?
# 1 = Don't Show any of Them.
# 2 = Show them as Usual.
# 3 = ONLY show PvP Death Messages.
PvP_Death_Messages_Handling: 2

#====================================== World Settings ======================================#
### Disable ALL Death and Generic messages to those worlds, total silence, no message comming from the world itself or from any other.
Silenced_Worlds:
- TooManyDeaths_world
- NoSpam_world

### Linking worlds allows worlds to share death/generic messages, worlds out if this list will ONLY see it's own messages.
# Example: as you can see in this list, the worlds "world", "world_nether" and "world_the_end" are linked, so Death and Generic messages will be shared, if we have another world called "new_world", will only be able to see it's own Death and Generic Messages.
Linked_Worlds:
  Enable: false
  World_List:
  - world
  - world_nether
  - world_the_end

#====================================== Generic Messages ======================================#
### Enable/Disable all Generic Messages; if disabled, will totally turn off the listeners, so this part will not affect performance.
# (YOU HAVE TO RELOAD or STOP/START THE SERVER FOR THIS OPTION TO HAVE EFFECT)
Generic_Messages: true

### On Player FIRST Join Message:
Player_First_Join: '&aSouhaitons tous la &6bienvenue &a &b%player !'

### On Player Join Message:
Player_Join: '&e**&b%player &aa rejoint le serveur'

### On Player Leave/Disconnect Message:
Player_Disconect: '&e**&b%player &aa quitté le serveur'

### On Player Kick Message:
Player_Kick: '&b%player &4a été kické !'

#====================================== Death Messages ======================================#
### Change those TAGS as you wish.
# %player = Player (victim) name
# %killer = Player Assasin name (only for player kills, PvP)
# %weapon_material = Material name of the weapon wielded by the killer(only for player kills, PvP)
# %weapon_name = Meta display name of the weapon, instead of the material one, if there's no name it'll show the material one.
# %world = World name in which the player died, can be used in any message.

### Don't forget to use bukkit colors if you want ===>    http://dev.bukkit.org/media/images/42/45/Colors.png
# And other Bukkit Formats ===>    &n = Underlined   ||   &o = Italic   ||   &m = Strike-through   ||   &l = Bold   ||   &k = Magic   ||   &r = Reset Format

### Some Examples:
# Example for Creeper Message = '&2%player &Elikes to hug &CCreepers&E, he is a pill of dust now...'
# Example for PvP Message = '&2%player &Ewas slain by &Ckiller&E, wielding his mighty &C%weapon'

### TAKE CARE ABOUT SPECIAL CHARACTERS OR NON-ENGLISH ONES! THE BUKKIT YAML PARSER DON'T ALLOWS THEM! CHECK THE PLUGIN PAGE TO USE VARIABLES INSTEAD TO SHOW THEM!

### Finally, you can add/modify/remove all the random messages you wish, when a death occurs, a random message from the list will be chosen.
# REMEMBER, THERE'RE NOT ONLY 2 POSSIBLE RANDOM MESSAGES, ADD/REMOVE ALL YOU WISH! INFINITE POSSIBILITIES!

### Mob Causes
Blaze:
- '&2%player &Ewas fireballed by &CBlaze'
- '&2%player &Eate a &CBlaze &2 fireball!'
CaveSpider:
- '&2%player &Ewas slain by &CCave Spider'
- '&2%player &Ewas bitten by &CCave Spider'
Creeper:
- '&2%player &Eblew up'
- '&2%player &Eexploded!'
EnderDragon:
- '&2%player &Ewas slain by &CEnder Dragon'
- '&2%player &Etried to ride the &CEnder Dragon'
Enderman:
- '&2%player &Ewas slain by &CEnderman'
- '&2%player &Ewas shocked by &CEnderman'
Ghast:
- '&2%player &Ewas fireballed by &CGhast'
- '&2%player &Eate a &CGhast &2 fireball!'
Giant:
- '&2%player &Ewas slain by &CGiant'
- '&2%player &Ewas stomped by &CGiant'
IronGolem:
- '&2%player &Ewas slain by &CGolem'
- '&2%player &Ewas drilled by &CGolem'
MagmaCube:
- '&2%player &Ewas slain by &CMagma Cube'
- '&2%player &Ewas crumped by &CMagma Cube'
PigZombie:
- '&2%player &Ewas slain by &CZombie Pigman'
- '&2%player &Ewas slashed by &CZombie Pigman'
Silverfish:
- '&2%player &Ewas slain by &CSilverfish'
- '&2%player &Ewas killed by a &CSilverfish&E, really?'
SkeletonArcher:
- '&2%player &Ewas shot by &CSkeleton'
- '&2%player &Ewas head shotted by a &CSkeleton'
SkeletonMelee:
- '&2%player &Ewas slain by &CSkeleton'
- '&2%player &Ewas punched by &CSkeleton&E, without bow!'
Slime:
- '&2%player &Ewas slain by &CSlime'
- '&2%player &Ewas basted by &CSlime'
Spider:
- '&2%player &Ewas slain by &CSpider'
- '&2%player &Ewas bitten by &CSpider'
Witch:
- '&2%player &Ewas killed by &CWitch'
- '&2%player &Ewas cursed by &CWitch'
Wolf:
- '&2%player &Ewas slain by &CWolf'
- '&2%player &Ewas bitten by &CWolf'
Zombie:
- '&2%player &Ewas slain by &CZombie'
- '&EA &CZombie &Eate &2%player''s &Ebrain!'
### Wither
Wither:
- '&2%player &Eblew up'
- '&2%player &Ewhat?'
WitherEffect:
- '&2%player &Ewithered away'
- '&2%player &Epum! pam! puf!'
### Wither Skeleton
WitherSkeleton:
- '&2%player &Ewas slain by a &CWither Skeleton'
- '&2%player &Ewas crushed by a &CWither Skeleton'
#====# PvP Causes #====#
PvPWeapon:
- '&2%player &Ewas slain by &C%killer'
- '&2%player &Ewas slashed by &C%killer'
# Weapon Tag NOT APLICABLE
PvPFist:
- '&2%player &Ewas slain by &C%killer'
- '&2%player &Ewas punched by &C%killer'
PvPBow:
- '&2%player &Ewas shot by &C%killer'
- '&2%player &Ewas shot by &C%killer'
# This happens when a player dies by a Thorn Enchantment.
Thorns:
- '&2%player &Ewas killed while trying to hurt &C%killer'
- '&2%player &Ewas killed while trying to hurt &C%killer'
#====# Other Causes #====#
TNT:
- '&2%player &Eblew up'
- '&2%player &Ethought it was a cake!'
Cactus:
- '&2%player &Ewas pricked to death'
- '&2%player &Ehugged a cactus!'
Anvil:
- '&2%player &Ewas squashed by a falling anvil'
- '&2%player &Etried to kiss a falling anvil'
# Dispenser only has 1 message for deaths, but i added another one if player dies from a fireball ;)
DispenserArrow:
- '&2%player &Ewas shot by arrow'
- '&EA dispenser filled &2%player''s &Ebody with iron!'
DispenserFireball:
- '&EA &CDispenser &Ehas fried &2%player'
- '&EA dispenser burned &2%player &Eto death!'
Drowning:
- '&2%player &Edrowned'
- '&2%player &Eforget to buy gills!'
PotionofHarming:
- '&2%player &Ewas killed by magic'
# In Minecraft you can't die from normal Poison, you just get to half heart, anyway it a Poison Potion hits you when u're with low health and kills you or by other plugins this could happen.
Fall:
- '&2%player &Ehit the ground too hard'
- '&2%player &Ehit the ground too hard'
Poison:
- '&2%player &Eate contaminated food'
- '&2%player &Eate contaminated food'
# Direct exposure to a fire block
FireBlock:
- '&2%player &Ewent up in flames'
- '&2%player &Ewent up in flames'
# Death caused by burns after leaving a Fire Block or Lava Block.
FireEffect:
- '&2%player &Eburned to death'
- '&2%player &Eburned to death'
Lava:
- '&2%player &Etried to swin in lava'
- '&2%player &Etried to swin in lava'
# You usually get "went up in flames" like cause of death by a thunder, now you can specify what you want, anyway if the fire kills you first the cause will still being the fire.
Lightning:
- '&2%player &Ewent up in flames'
- '&2%player &Ewent up in flames'
Starvation:
- '&2%player &Estarved to death'
- '&2%player &Estarved to death'
Suffocation:
- '&2%player &Esuffocated in a wall'
- '&2%player &Esuffocated in a wall'
# Suicide message is only possible when player uses /suicide or /kill to himself.
Suicide:
- '&2%player &Edied'
- '&2%player &Edied'
Void:
- '&2%player &Efell out of the world'
- '&2%player &Efell out of the world'
# Weird causes like killed by EnderPearl, Eggs and Snowballs.
# Snowmans can't kill players cause Snowballs have no damage, anyway some servers change this mechanic for fun (like my server), so i added it too.
Others:
- '&2%player &Ewas pummeled'
- '&2%player &Ewas pummeled'
Snowman:
- '&2%player &Ewas freezed by &CSnowman'
- '&2%player &Ewas freezed by &CSnowman'
## Rest of the Causes, command causes will be showed here, like /kill or /suicide case doesn't have a damager.
Unknown:
- '&2%player &Efell out of the world'
- '&2%player &Efell out of the world'

Notes

  • Merci à thekom et à Pipilou90 d'avoir enduré plusieurs heures durant, diverses tortures et démembrements afin que je puisse de configurer convenablement DeathMessages Notch.
  • DeathMessages fonctionne uniquement avec Java 7, si vous utilisez Java 6, vous aurez alors l'erreur suivante : Unsupported major.minor version 51.0. Mettez à jour.