Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Cancel player death and set health

Comments in 'Plugin Development' started by thebigsmileXD, Sep 20, 2015.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    How many times do I have to say this? EntityDamageByEntityEvent cannot be used as the event handler type.
    thebigsmileXD likes this.
  2. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Dang I forgot the handler part. I wanted to say the same thing.
  3. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    We aren't even talking about that snippet anymore :D
    As i said, the other snippet worked
    pomee4 likes this.
  4. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    forgot to add this, i'll do it later :)
    Happens when you develop plugins within 45 minutes xD
    Heres the InstantRespawn plugin without the drop inventory feature ^~^"

    Attached Files:

  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    :) I created a one that drops items :p
    But won't work since setHealth() does not work :mad:
  6. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    It does work, but you have to call it on the correct event :)
    Not the entitydeath event but the entitydamageevent ^^

    And my plugin has a nice config for messages and you can configure what worlds you want to use this features and which ones not ^^
    I forgot to mention that ^~^"

    /instantrespawn <addworld <name>||removeworld <name>||ls||list> are the commands
  7. pomee4
    Offline

    pomee4 Active Member

    Joined:
    Jul 8, 2015
    Posts:
    106
    Minecraft User:
    pomee4
    Cool :) ill wait for it

Share This Page

Advertisement