SetMyHealth Remade v1.09

Allows you to easily alter players health, air, and hunger

  1. Dankrushen
    Hello, this is a complete remake of the plugin "SetMyHealth" that I made a while ago. This is basically the same, but much better, up to date, and fully open-source. Feel free to try it out now and make sure to report any bugs, things that look bad, or don't work well to me so I can make it better. As of v0.15 it supports Java 7u79

    If you want an older version of the plugin, visit here (Dunno why you'd want to do that though...)

    Sorry for big numbers coming out with letters and stuffs in it, I will try to fix that in a bit.

    It takes quite a while for the bukkit.org api to update it's version list that is available here (Mostly just so I can check it :p) and I will try to update the message below as soon as I can when it updates the list to the newest version, but now since the auto-updater is in the plugin, you don't really have to worry about this, it will just make it downgrade temporarily if you download a newer one than one listed on the api, then it will auto-update sometime about from an hour to a day later.

    Is the newest version visible to the auto-updater? Yes! :)

    I am currently working on trying to add support for doing the commands through console. Fixed my health on the server, but I will still try to add this support.

    == Commands ==

    SetHealth: Usage: (/sethealth <playername> <amount>) Description: Sets a players or your own health level

    (v0.07+ only below)

    SetHunger: Usage: (/sethunger <playername> <amount>) Description: Sets a players or your own hunger level

    (v0.09+ only below)

    MaxHealth: Usage: (/maxhealth <playername> <amount>) Description: Changes a players or your own max health

    (v0.13+ only below)

    MaxAir: Usage: (/maxair <playername> <amount>) Description: Changes a players or your own max amount of air

    SetAir: Usage: (/setair <playername> <amount>) Description: Changes a players or your own air level

    SetMyHealth: Usage: (/setmyhealth) Description: Gives you help on the plugin

    (v1.04+ only below)

    SetMyHealth Reload: Usage: (/setmyhealth reload) Description: Reloads the plugins config

    SetMyHealth Set: Usage: (/setmyhealth set <options name> <amount>) Description: Sets an option in the plugins config

    == Aliases ==

    SetHealth = SH

    (v0.07+ only below)

    SetHunger = SHR

    (v0.09+ only below)

    MaxHealth = MH

    (v0.13+ only below)

    SetAir = SA

    MaxAir = MA

    SetMyHealth = SMH

    (v1.04+ only below)

    SetMyHealth Reload = SMH R

    SetMyHealth Set = SMH S

    == Permissions ==
    (v0.13+ only below)

    SetMyHealth.use.* (Allows use of all commands)

    SetMyHealth.use.sethealth (Allows use of /sethealth)

    SetMyHealth.use.sethunger (Allows use of /sethunger)

    SetMyHealth.use.maxhealth (Allows use of /maxhealth)

    SetMyHealth.use.maxair (Allows use of /maxair)

    SetMyHealth.use.setair (Allows use of /setair)

    SetMyHealth.use.sethealth.others (Allows use of /sethealth on other players)

    SetMyHealth.use.sethunger.others (Allows use of /sethunger on other players)

    SetMyHealth.use.maxhealth.others (Allows use of /maxhealth on other players)

    SetMyHealth.use.maxair.others (Allows use of /maxair on other players)

    SetMyHealth.use.setair.others (Allows use of /setair on other players)

    SetMyHealth.use.info (Allows use of /setmyhealth)

    (v1.04+ only below)

    SetMyHealth.use.reload (Allows use of /setmyhealth reload)

    SetMyHealth.use.set (Allows use of /setmyhealth set)

    == Config ==
    (v0.18+ only below)

    The default configuration file should look like this as of v0.18:
    Code (Text):
    # Configuration For SetMyHealth
    MaxHealthLimit: 50
    MaxHealthOthersLimit: 50
    MaxAirLimit: 60
    MaxAirOthersLimit: 60
    The default configuration file should look like this as of v0.19+:
    Code (Text):
    # Configuration For SetMyHealth
    Note: Changes how high players can set their own maximum health (This is just information about the config setting below)
    MaxHealthLimit: 50
    Note2: Changes how high players can set other players maximum health (This is just information about the config setting below)
    MaxHealthOthersLimit: 50
    Note3: Changes how high players can set their own maximum air (This is just information about the config setting below)
    MaxAirLimit: 60
    Note4: Changes how high players can set other players maximum air (This is just information about the config setting below)
    MaxAirOthersLimit: 60
    The default configuration file should look like this as of v1.04+:
    Code (Text):
    ####Configuration File for SetMyHealth####

    #Changes how high players can set their own maximum health#
    MaxHealthLimit: 50

    #Changes how high players can set other players maximum health#
    MaxHealthOthersLimit: 50

    #Changes how high players can set their own maximum air#
    MaxAirLimit: 60

    #Changes how high players can set other players maximum air#
    MaxAirOthersLimit: 60
    The default configuration file should look like this as of v1.07+:
    Code (Text):
    ####Configuration File for SetMyHealth####

    #Changes how high players can set their own maximum health#
    MaxHealthLimit: 50

    #Changes how high players can set other players maximum health#
    MaxHealthOthersLimit: 50

    #Changes how high players can set their own maximum air#
    MaxAirLimit: 60

    #Changes how high players can set other players maximum air#
    MaxAirOthersLimit: 60

    #Enables or disables Auto-Updating
    Auto-Update: true
    The default configuration file should look like this as of v1.08+ (Newest!):
    Code (Text):
    ####Configuration File for SetMyHealth####

    #Changes how high players can set their own maximum health#
    MaxHealthLimit: 50

    #Changes how high players can set other players maximum health#
    MaxHealthLimitOthers: 50

    #Changes how high players can set their own maximum air#
    MaxAirLimit: 60

    #Changes how high players can set other players maximum air#
    MaxAirLimitOthers: 60

    #Enables or disables Auto-Updating
    Auto-Update: true
    Currently, the config file layout gets messed up if you set them from in-game, so I suggest referring to here if you cannot tell what the config options mean.

    == Installation ==
    Drag the jar file into the plugins folder and reload the server. If you're wondering about the versions, and why I skip so many is because each 0.01 equals about 1 big fix or addition.

    == Auto-Updater ==
    The plugin should now automatically update to the latest version as of v1.06+!
    This plugin uses Gravity's updater to automatically update to the latest version! Thanks Gravity!

    == Using /setmyhealth set ==
    Valid options names are:

    MaxHealthLimit/MHL

    MaxHealthLimitOthers/MHLO

    MaxAirLimit/MAL

    MaxAirLimitOthers/MALO

    Auto-Update/AU

    == MCStats ==
    As of v1.07+ SetMyHealth uses MCStats to monitor how many people use the plugin and much more!

    Global Statistics From MCStats.org
    [​IMG]

    == Planned Features ==
    Here are some things I'm planning on adding...
    • Ability to change players health, hunger, e.t.c on join with permissions for those too to leave players with a permissions to leave them out of this, and ability to have up to 5 different configurations for each one so you could make a different rank have a different amount of health on spawn. (That feature has been moved to an upcoming plugin SetMyHealthShop)

    If you like this plugin or just want to help me out, then donate!

    [​IMG]

Recent Updates

  1. SetMyHealth v1.09
  2. SetMyHealth v1.08

Recent Reviews

  1. DanTDM933846
    DanTDM933846
    5/5,
    Version: v1.07
    This plugin is great. As soon as I added it to my server, I could change peoples health bars and stuff! Great for my pvp minigame.