death msg with kills

Discussion in 'Plugin Requests' started by swaggod, Jul 1, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    swaggod

    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
     
    Last edited: Jul 1, 2017
  2. Offline

    Firestar311

    The Yellow color is extremely hard to read
     
  3. Offline

    Jkaay

    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 :/
     
  4. Offline

    swaggod

    but does it reset when the server restart?
     
  5. Offline

    Jkaay

    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.
     
  6. Offline

    Machine Maker

    You could store the player kills in the config and then reset the kills there.
     
  7. Offline

    Firestar311

    You have to store them in a file with the UUID or name (Getting an offline player by name is deprecated)
     
  8. Offline

    swaggod

    @Firestar311 and @X1machinemaker1X said it is possible :/
     
  9. Offline

    swaggod

    you their bro?
     
  10. Offline

    Jkaay

    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.
     
    Last edited: Jul 5, 2017
Thread Status:
Not open for further replies.

Share This Page