[EasyPlugin] HP Per Kill

Discussion in 'Archived: Plugin Requests' started by xitroxide, Nov 2, 2014.

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

    xitroxide

    Plugin category: EXAMPLE

    Suggested name: HealthPerKill

    What I want: This plugin is really simple but everytime I search for one, along with the the fact that the previous plugin request didn't work, I've gone to the forums to request this plugin.

    This is how it works:
    When I kill a player, I get my health restored to full.
    Configuration
    #HealthPerKill Config
    enabled worlds:
    - exampleworld
    - uhc1

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: any player can use it, if you don't want to do that... healthperkill.use

    When I'd like it by: Today (ASAP)
     
  2. Offline

    nichiatu

    What version do you need it for? :)
     
  3. Offline

    xitroxide

    CraftBukkit 1.7.10, also instead of just flat hearts can you grant them regeneration 2 for 4 seconds?
    nichiatu
     
  4. Offline

    JordyPwner

    This would be easy :p
    Check for a kill
    Check if the killer isnt a entity like a skeleton
    Then set the killers HP to 20 (1 heart is 2)
    then add the potion effect ;)
     
  5. Offline

    JesseyCool

    cool idea
     
  6. Offline

    JordyPwner

    [quote uid=90956090 name="xitroxide" post=2870356]Plugin category: EXAMPLE

    Suggested name: HealthPerKill

    What I want: This plugin is really simple but everytime I search for one, along with the the fact that the previous plugin request didn't work, I've gone to the forums to request this plugin.

    This is how it works:
    When I kill a player, I get my health restored to full.
    Configuration
    #HealthPerKill Config
    enabled worlds:
    - exampleworld
    - uhc1

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: any player can use it, if you don't want to do that... healthperkill.use

    When I'd like it by: Today (ASAP)[/quote]

    <Edit by Moderator: Redacted mediafire url>
    Done :p
    Found it somewhere
     
    Last edited by a moderator: Oct 31, 2016
  7. Offline

    Hawktasard

    Not trying to be that one fag, But the player is an entity.
    Just thought you had to know that, If you didn't already.
     
  8. Offline

    JordyPwner

    I found it somewhere i dont decompile :p
     
  9. Offline

    Hawktasard

    Not sure if this was directed at me, But if so it kind-of explains itself, no need to look at the source.
     
  10. Offline

    JordyPwner

    Why does it explains itself if i may ask?
     
  11. Offline

    Hawktasard

    Because, The player takes damage, It moves, etc..
    Also, It's the only reason you can convert from Entity to Player, and vice versa.

    (e.g., Player p = (Player) someEntity;)
     
    JordyPwner likes this.
  12. Offline

    JordyPwner

    How would i know that the player isnt a entity in that code or how you sasid without decompiling?
     
  13. Offline

    Hawktasard

    What code?..
    I'm not talking about this project, Its just Bukkit.
     
    JordyPwner likes this.
  14. Offline

    JordyPwner

    I think im thinking wron but i ahd it over the plugin that i sended :p
     
  15. Offline

    Hawktasard

    You don't have to edit anything, If you look at my first post, You see I only quoted a part of it, Where you said "Check if killed isn't an entity like skeleton"

    Just thought I'd let you know if you didn't already, That Players are an Entity too.
    You probably already knew, but once again.
     
    JordyPwner likes this.
  16. Offline

    JordyPwner

    Oh sorry my mistake :p
     
    Hawktasard likes this.
  17. Offline

    JesseyCool

Thread Status:
Not open for further replies.

Share This Page