So in this plugin, I want a death msg with kills like this &c<playerewhodied>&8[%kills%&8] &ewas slain by &c<killer> &8[%kills%&8] player1[1] was slain by player2[2] player1[3] drowned player1[3] blew up player1[3] was shot by player2[1] ..etc I can change the msg in config. If it's a mob who killed a player then it won't show mobs kills xD it would just say the mob name The kills reset when the server restart and I can change player kills by doing /setkills <player> <amount> To change the player kills /checkkills <player> /resetkills <player/all> Note this plugin MUST have all the death msg. http://minecraft.gamepedia.com/Health#Death_messages 1.8 plugin
Made this partially. Download: https://www.dropbox.com/s/rn8hxnv60m6mso2/DeathMsg.jar?dl=0 All death messages are there, configurable like you asked. /checkkills and /setkills work fine. Only problem is that you can't get the stats of an offline player as far as I know. So /resetkills only works for online players :/
No, like I said, it's not possible as far as I know to get the stats (kills) of an offline player. Every player would be offline when the server loads to have reset the stats at this time.
You have to store them in a file with the UUID or name (Getting an offline player by name is deprecated)
Sorry for the wait, took me awhile to think of how to do this properly in addition to having multiple plugin requests. I was able to add /resetkills for every player by resetting the kills for the offline player the next time they log on. The kills also reset when the server restarts (or the world loads) like you asked. Download: https://www.dropbox.com/s/xts2seuf65u9u40/DeathMsg.jar?dl=0 (Edited original download because I forgot to register the WorldLoadEvent so kills didn't reset when the server restarted. Also while I was at it I made the plugin message every online player saying kills were reset and message an specific player when /resetkills <player> was typed. EDIT: Typing just /resetkills resets kills for every player. /resetkills <player> resets kills for a certain player.