{Revive and Improve} DeathBan [Need it Quickly ! :)]

Discussion in 'Archived: Plugin Requests' started by Pomme72, Nov 1, 2011.

  1. Offline

    Pomme72

    Hi guys,

    My request is VERY simple, but also VERY asked on bukkit.

    I need a simple plugin, who ban a player when he died.

    Just it. Only it.

    Oh, also, If you can add a feature like when a player right-click with a diamond in his hand, he gain a supplementary live, that'll be sooo great.

    Please, I need it quiiiiiickly ! :)

    THANK YOU SO MUCH IF YOU DO THIS, I'm lovin' you ! :p
     
  2. Offline

    acuddlyheadcrab

    Ban a player when they die? i'm on it!
     
  3. Offline

    Pomme72

    OMG DUDE

    MARRY ME :'D

    You're my heroooooo omg I love you soooo hard guuuuy ! <3 <3 <3 <3 <3 <3 <3 <3
     
  4. Offline

    DirtyStarfish

  5. Offline

    acuddlyheadcrab

    Has it really been not done before? Like i'm almost done lol

    EDIT: ↑ Ah, I was gonna say. In that case i'll take more time, and add the diamond thing in the first release.
     
  6. Offline

    Pomme72

  7. Offline

    DirtyStarfish

    Oh ok.. well hopefully acuddlyheadcrab will have something for you :)

    @acuddlyheadcrab
    If you get it working, may I see the source?
     
  8. Offline

    Pomme72

    YEAH I WANTIIT <3
     
  9. Offline

    acuddlyheadcrab

    Yeah I'll include the source in the jar :).

    What i have now is an EntityDeathEvent listener and if the entity is an instance of Player, I cast the entity to a player, and ban the player :)

    What i'm working on now is a PlayerInteractEvent listener for the diamond right click.
     
  10. Offline

    Pomme72

    Already ?!

    :O

    Are you...

    Are you God ?
     
  11. Offline

    acuddlyheadcrab

    Lol no, I just happened to already have a plugin a lot like this! Plus i know the BukkitAPI very well.

    Except... does anyone know the data value of Diamonds... 0_0 (the wifi im using has the wiki blocked)
     
  12. Offline

    Pomme72

    Oh lol, it's 264. ^_^'
     
  13. Offline

    acuddlyheadcrab

    Ugh... It won't ban them right away, until the banned-players.txt is saved. Which can be done by the reload command, but that would be really annoying. Does anyone know of an easier way to ban people?

    *easier way, than using setBanned(true) and a reload command or custom method..
     
  14. Offline

    Pomme72

    I don't know, I cannot help you... :'(
     
  15. Offline

    DirtyStarfish

    setBanned(true) is what I did. Apparently that doesn't work. Maybe, on death, add the player to your own list, as well as a list in memory. Then, onPlayerJoin, check if the player is on the list in the config, or the list in memory, and if so, kick, if not, let them join.

    This way, you don't need to wait for them to be added to the banned-players.txt as all banned players will already be in memory.

    When I tested mine, on my own, it worked fine. I was kicked and banned straight away....
     
  16. Offline

    acuddlyheadcrab

  17. Offline

    Pomme72

    Ok, thank you for made it :)

    Now, two issues :

    - I can infinite right click with a diamond for have supplementary lifes, diamond is not consommed.

    - Supplementary lifes are not working, when I dead, I'm ban.


    Please fix it...


    ... You God. :p
     
  18. Offline

    acuddlyheadcrab

    Sorry it only does the deathban for now... :p

    The "lives" do nothing right now, it just sends a message when you have diamond in your
    I also still need to add a config, which is confusing to me now, since the API methods were updated. The config will save the number of lives each person has.

    EDIT: It may take a little while to finish this up btw. If anyone wants to pick it up go ahead :)
     
  19. Offline

    Pomme72

    Ok, thank you so MUCH and GOOOOD LUCK :D

    Oh, and can you add this feature :

    When a player die, simply make a sign where he died with his name on the sign.

    Thankssss ! :)
     
  20. Offline

    BlueMond416

    I think your making this sound a little too hard...I can make this easy, just give me like maybe one hour + bugs about 2 hours
     
  21. Offline

    Pomme72

    Ok, thank you so much ! :)

    Oh, and at least, can you add this little last feature :

    - The signs are unbreakable (the sign of the dead player) and when a player right click on the sign with a diamond in the hand, that revive (unban) him.

    This feature'll allow friends to revive themselfs easily :)

    Thank you !
     
  22. Offline

    BlueMond416

    That sounds very possible

    Would you like ops to not be banned?
    EDIT: This may take a bit longer than expected do to the sign part of the plugin but it will be awesome in the end :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  23. Offline

    acuddlyheadcrab

    @BlueMond416
    Did you get the diamond thing and lives working?
     
  24. Offline

    BlueMond416

    Yeah

    It's just about done :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  25. Offline

    acuddlyheadcrab

    How did you do it though :)?
     
  26. Offline

    BlueMond416

    playerinteractevent
    I also use files to save lives

    It's actually pretty big but I have this one stubborn bug that doesn't want to give up..

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  27. Offline

    acuddlyheadcrab

    ah, thats what i was going to do lol :) good job!
     
  28. Offline

    BlueMond416

    FINISHED! Just give me a sec to post it..

    Um nvm, I got another bug but I'll fix it tomorrow so screw it for now

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  29. Offline

    acuddlyheadcrab

    I can haz source to fix?
     
  30. Offline

    Pomme72

    Holy shit guys... You are my heroes :'D

    So much thank you for all you are doing for me, I'll never forget !

    I'm very impatient to test your plugin, BlueMond :p

    Is anyone here ? :D

    Hello there ? I really need this one, as quick as possible ! ^^

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016

Share This Page