Filled More Hearts Plugin [Thanks for all the support]

Discussion in 'Archived: Plugin Requests' started by billytheDOLPHIN, May 10, 2014.

  1. Offline

    billytheDOLPHIN

    Plugin Name: MoreHearts
    Category: Fun

    I am currently working on an arcade server and as a cool little feature just for style and to show off,I am looking for a plugin where every player on the server has 4 rows of hearts or 40 hearts. I don't imagine a plugin like this would be hard to make but I don't know much about java....

    Is it possible to have this plugin by later today or early tomorrow?

    - Adam
     
  2. Offline

    EnderTroll68

    billytheDOLPHIN
    I can get it to you in like 30 minutes, check the link in my signature when I post back
     
  3. Offline

    TimJames

  4. Offline

    billytheDOLPHIN

    Last edited by a moderator: Jun 8, 2016
  5. Offline

    EnderTroll68

    Alright, I am done. Just check the link in my signature and click on the folder named MoreHearts
     
  6. Offline

    billytheDOLPHIN

  7. Offline

    EnderTroll68

    No problem, if there are any problems with it just post it in here and tag me, or send me a PM

    If you want, I can make it so you can change the health in game without reloading, it just might cause problems since it could be abused to just instantly heal everyone on the server. Up to you, it would just take me like 5 minutes
     
  8. Offline

    billytheDOLPHIN

    EnderTroll68 It is for a lobby server just for decoration, the plugin isn't giving me 40 hearts. 40 Hearts.JPG
    This is an example of it on another minigame server such as mine. As you can see I have 40 hearts.
    I don't want any perms or commands.
    I just want all players to spawn with 40 hearts like this.

    Sorry for being so picky!

    -Adam
     
  9. Offline

    EnderTroll68

    It is working for me. Do you have any errors in the console?
     
  10. Offline

    billytheDOLPHIN

    EnderTroll68 Oh, and also your plugin doesn't even load. No console errors or nothing, just doesn't load. I'm using craftbukkit 1.7.9

    EnderTroll68 this version: craftbukkit-1.7.9-R0.1-20140503.225437-20.jar

    EnderTroll68 got an error this time: View attachment 19550

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  11. Offline

    EnderTroll68

  12. Offline

    billytheDOLPHIN

    EnderTroll68 Still getting same error . I'm no expert. But i'm pretty sure the plugin is trying to load itself as a 1.7.2-R0.3 judging by that error.

    Crud41 can you help?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  13. Offline

    Crud41

    billytheDOLPHIN
    Calling me out of the blue. I didn't even post here, haha! If I were to make this work... I would probably have it refill their HP 4 times to full health and then let them die. I am not sure I have the knowledge to create multiple heart gauges. Sorry.
     
    billytheDOLPHIN likes this.
  14. Offline

    billytheDOLPHIN

    Onlineids Since the other guy that "said" he would help me is actually a scam. How hard would something like this be to make? 40 Hearts.JPG Here is a picture of what it should look like. Also make sure it is compatible for the latest dev version of craftbukkit. Non like the other guy.

    Thanks so much if you can help me!

    -Adam

    Crud41 I tagged you because you had a lot of recent reply's. Thanks for at least looking at it; A like for you ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  15. Offline

    EnderTroll68

    It is a tiny plugin, literally 25 lines. There should be no problem with it, I am not having one.

    The code to it is here:
    Code:java
    1. public class Main extends JavaPlugin implements Listener {
    2.  
    3. private double maxHearts;
    4.  
    5. public void onEnable() {
    6. this.maxHearts = this.getConfig().getDouble("maxHealth");
    7. this.saveDefaultConfig();
    8. for (Player p : Bukkit.getOnlinePlayers()) {
    9. p.setMaxHealth(maxHearts);
    10. p.setHealth(maxHearts);
    11. }
    12. Bukkit.getPluginManager().registerEvents(this, this);
    13. }
    14.  
    15. @EventHandler
    16. public void onJoin(PlayerJoinEvent e) {
    17. e.getPlayer().setMaxHealth(maxHearts);
    18. e.getPlayer().setHealth(maxHearts);
    19. }
    20.  
    21. }
     
  16. Offline

    billytheDOLPHIN

    EnderTroll68 Why not try making it again and this time making sure you are implementing the latest jar. I'm pretty sure you accidentally used a 1.7.2 jar for me.
     
  17. Offline

    Crud41

  18. Offline

    billytheDOLPHIN

    Crud41 No download link?

    EnderTroll68 I'm super desperate.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  19. Offline

    Onlineids

    Why was I tagged? xD
     
  20. Offline

    billytheDOLPHIN

    Crud41 It Didn't work.

    You are extremly smart and I need help. I thought this would be something quick? Am I wrong? And can you help? Onlineids

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  21. Offline

    Onlineids

    I'm special :3
     
    CarPet likes this.
  22. Offline

    Crud41

    Onlineids is like:
    [​IMG]

    (Probably my fav person on this forum)
     
    CarPet likes this.
  23. Offline

    billytheDOLPHIN

  24. Offline

    Crud41

    Okay, well; I don't have his source code :( (I could decomplie but that takes too much effort) I'll let Onlineids take care of this, unless he wants me to :3.
     
  25. Offline

    Onlineids

    [quote uid=90901562 name="billytheDOLPHIN" post=2480777]Crud41 Onlineids I would love you both more if you could help xD[/quote]

    <Edit by Moderator: Redacted mediafire url>
    Credit to Crud41 for code updating
    Credit to EnderTroll68 for original code
     
    Last edited by a moderator: Nov 2, 2016
    Crud41 likes this.
  26. Offline

    billytheDOLPHIN

    If either one of you guys takes this I will personally find you and kill you give you a hug :3 Crud41 Onlineids
     
  27. Offline

    Onlineids

    billytheDOLPHIN Look up :3
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016
  28. Offline

    Crud41

    Onlineids[quote uid=90875889 name="Onlineids" post=2480786]<Edit by Moderator: Redacted mediafire url>
    Credit to Crud41 for code updating
    Credit to EnderTroll68 for original code[/quote]
    -gives hug-
     
    Last edited by a moderator: Nov 2, 2016
  29. Offline

    billytheDOLPHIN

    [quote uid=90875889 name="Onlineids" post=2480786]<Edit by Moderator: Redacted mediafire url>
    Credit to Crud41 for code updating
    Credit to EnderTroll68 for original code[/quote]

    [​IMG] Thanks for the effort, but still same error :( Any ideas what it means Crud41 Onlineids
     

    Attached Files:

    Last edited by a moderator: Nov 2, 2016
  30. Offline

    Onlineids

    15987632 likes this.

Share This Page