Filled Kill to heal and feed.

Discussion in 'Plugin Requests' started by Emperor Aiman, Feb 25, 2015.

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


    @Emperor Aiman I used that :
    double before = ((Damageable) victim).getHealth();
    victim.damage(((Damageable) victim).getHealth()*100, (Player) sender);
    double after = ((Damageable) victim).getHealth();
    if (before > after) {
        while (!victim.isDead()) victim.damage(((Damageable) victim).getHealth()*100, (Player) sender);
        sender.sendMessage(ChatColor.GREEN + "You killed " + victim.getDisplayName() + ChatColor.GREEN + " with your hands!");
    } else {
        sender.sendMessage(ChatColor.RED + "This player is protected by a no-pvp area!");
  2. Offline

    Emperor Aiman

    Thank you so much for all the help you provided. I really appreciate it. :)
  3. Offline


    @Emperor Aiman You're welcome ;)
    Don't forget to mark this as filled :p
  4. Offline

    Emperor Aiman

    How to do that? Mods, please do that for me :)
  5. Offline


    Marked as Filled.

    @Emperor Aiman
    Top right corner -> Thread Tools
  6. Offline

    Emperor Aiman

    Hi @au2001 I am having a problem if the player dies by a natural event like fire or void. The plugin gives tons of errors saying that it could not pass player death event to kitpvp assist. How do I make it go away?

    Oh fixed it :3
    Last edited: Mar 4, 2015
  7. Offline


    @Emperor Aiman Okay, perfect. If you need more help, please tell me :p
Thread Status:
Not open for further replies.

Share This Page