9 Lives

Discussion in 'Archived: Plugin Requests' started by GeekPlaya, May 16, 2011.

  1. Offline

    GeekPlaya

    Can someone make a plugin that after a player dies a SET (default: 9) amount of times, they are sent to somewhere in the Nether (you'd specify the map name).
     
  2. Offline

    WhosDaMan

    This sounds very interesting.
    After being sent to the Nether, they should be able to get back through a portal on the other side of the nether, in plain sight. (configurable ingame?)
     
  3. Offline

    iPhysX

    could do a counter :)
    so it counts deaths++;
    and then on the ninth.. it spawns them in world = nether :/
    and resets the death counter!
     
  4. Offline

    GeekPlaya

    Can you please make this xD?
     
  5. Offline

    iPhysX

    ill have a go. But the initial release. There will be no config. Nether world will need to be called Netherworld
     
  6. Offline

    Windwaker

    Yeah I actually am doing this iPhysX :D

    If you want in your are welcomed to help. I haven't gotten very far just started it yesterday. Basically, what @GeekPlaya described isn't the main function, but what will be is that the whole purpose is being able to ban or kick people to the nether. Possible features could include configurable ban/kick on deaths as you have described, kicks will be being able to get back through a portal, banning will be you won't, mute on ban (configurable), ban/kick on blacklisted items, and probably some others I haven't thought of :D
     
  7. Offline

    iPhysX

    id be happy to write a method to kick people to the nether on their XXXth death!
     
  8. Offline

    Windwaker

    Could you? That would be awesome because that seems like it would be the most difficult part for me :)
     
  9. Offline

    GeekPlaya

    :D

    Couldn't you craft a deaths.log and for each player, it will subtract the lives from 9 or whatever and once it reaches 0, reset and kick to nether?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  10. Offline

    iPhysX

    @Walker Crouse

    just have a counter running

    declare
    Code:
    int deaths = 0;
    int x = 100;
    int y = 20;
    int z = 3;
    Code:
    PlayerDeath(PlayerEvent event){
     if (player.isDead()){
    deaths++;
    }
    Code:
    PlayerRespawn(PlayerRespawnEvent){
    if (deaths >= 9) {
    //code to send to nether
    player.getServer().setWorld("netherworld");
    player.setLocation().BlockX(x);
    player.setLocation().BlockY(y);
    player.setLocation().BlockZ(z);
    player.sendMessage(ChatColor.RED + "You used your last life. Bitch!");
    deaths - deaths; // resets the deathcount
    } else {
    //else code maybe a message?
    }
    Something like that i would assume :)
     
    Walker Crouse likes this.
  11. Offline

    Windwaker


    Haha, only thing I do not understand is the first bit. I lost you at deaths++

    What exactly is that? :p
     
  12. Offline

    iPhysX

    or you could have them both on the respawn event!
    Code:
    PlayerRespawn(PlayerRespawnEvent){
    if (deaths >= 9) {
    //code to send to nether
    player.getServer().setWorld("netherworld");
    player.setLocation().BlockX(x);
    player.setLocation().BlockY(y);
    player.setLocation().BlockZ(z);
    player.sendMessage(ChatColor.RED + "You used your last life. Bitch!");
    deaths - deaths; // resets the deathcount
    } else {
    deaths++;
    }
    ok
    Code:
    int deaths = 0;
    
    this is the integer deaths..

    deaths++;
    simply adds 1 to the integer.
    and when it gets to 9..
    we can reset it by

    Code:
    deaths - deaths;
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  13. Offline

    GeekPlaya

    I got the ++ part xD
    I code PHP, vb.net, HTML, CSS, JAvascript, and yeah... so I can understand what you guys are talkin about :D
     
  14. Offline

    Windwaker

    Ahh.. gotcha ;)
     
  15. Offline

    Windwaker

Share This Page