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

How to use when it won't work?

Comments in 'Plugin Development' started by Marcelo234, Mar 30, 2016.

  1. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Hey Guys...I want to use setHealth(20)....But i heared that it won't work,in PM 1.6....
    I want that the Players has full Life when they join.......Is there a other way to use?
  2. MCUnderground
    Offline

    MCUnderground New Member

    Joined:
    Feb 6, 2016
    Posts:
    10
    Minecraft User:
    MCUnderground
    Maybe add onJoin regeneration effect for few seconds
  3. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    People say it doesn't work, but that doesn't mean it's true. You should try using setHealth first.
  4. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    I lready tested it...In PM 1.6 it didn't work but in PM 1.5 it works...
  5. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    How you use that?
    Because if I do this:
    PHP:
    $player->addEffect(Effect::getEffect(10)->setAmplifier(5)->setDuration(500)->setVisible(false));
    ....the player won't get healing....He get the Effect,but the Effect is not working...He won't healing...
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I have already fixed setHealth...
    matthww likes this.
  7. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    You code what? The Genisys, right?
  8. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Which version? Genisys? ImagicalMine? OfficialPM? .... @PEMapModder
  9. matthww
    Offline

    matthww Active Member

    Joined:
    May 13, 2014
    Posts:
    91
    Minecraft User:
    Matthww
    I think the official one
    Marcelo234 and PEMapModder like this.
  10. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    What a pitty! :( I realy would use it,If this Version hasn't problems with the old Plugins....
    matthww likes this.
  11. matthww
    Offline

    matthww Active Member

    Joined:
    May 13, 2014
    Posts:
    91
    Minecraft User:
    Matthww
    What do you mean with "problems"
  12. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    This version isn't compatible with the old api of some plugins..
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Wait, you aren't talking about PocketMine-MP at all?
    Please, this is the PocketMine Forums, so please specify if you aren't talking about PocketMine-MP at all.
    Gamecrafter and Marcelo234 like this.
  14. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Ohhh..Ok..
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  16. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Used it two minutes ago and it left me disabled inject button even after choosing .phar file. Edited source and enabled button manually but probably it's problem on my side
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Because you didn't read the instructions.
    Primus likes this.

Share This Page

Advertisement