[Request]Limiting players time on the surface?

Discussion in 'Bukkit Discussion' started by Grefuntor, May 6, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Grefuntor

    Hey everyone, is there a mod which lets me stop players from going on the surface of the world so they must remain underground?

    If not i would like to request a simple plugin which monitors their time up and after # seconds have passed damage them.

    A little summary of the request:
    • When the player is in the open world a timer ticks away,
    • At regular intervals (e.g 5 seconds) the player gets a message like "25 seconds of air time left"
    • Once the timer reaches 0 then the player starts to take damage.

    Thanks,
     
  2. Offline

    Uhehesh

    Oh, you server is post-apocalypse?
     
  3. Offline

    Grefuntor

    Yup :)
    (its a little 2 person one, given my crippling slow internet).
    I recently played the game Metro 2033. Beat it twice, and now i am halfway through the book and really enjoying it.

    I've wanted something to keep us underground, in our little metro we keep wanting to build.
     
  4. Offline

    Grefuntor

    Sorry, but bump-
    anyone willing to make/ tell me where to find this?
     
  5. Offline

    neX!Tem

    Nice idea, not that i would use it. but i think its not to hard to make at all. maybe.
     
  6. Offline

    DFYX

    There's a vampires plugin that does something similar. You could look at how it works.
     
  7. Offline

    Uhehesh

    The plugin realisation is very easy but I don't understand algorithm to get info whether player is on surface or under ground... Heh. If someone helped me with algorithm, I could create this plugin.
     
  8. Offline

    cholo71796

    The vampire plugin checks to see what light level the player is in, you could check to see if there are any blocks above the player.
     
  9. Offline

    matter123

    well you could comapre the block that the player is standing with
    world.getHighestBlockYAt(x, z);
     
  10. Offline

    Uhehesh

    matter123, oh, that's cool idea!
    Maybe I will try soon.

    But a problem: player can create one-block roof and...
    Fail :(

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

    Grefuntor

    That's ok, it doesn't matter, its close enough :)
    Edit: that might keep people hiding under shelter, avoiding sky/sun, which would be a very interesting dynamic! Every second getting from one cover to another they take damage meaning they need to plan a path to work with the food they have.

    :D
     
  12. Offline

    Uhehesh

    I will do this tomorrow, maybe. :D
     
  13. Offline

    Grefuntor

    Thank you so much!
    It is really appreciated!
     
  14. Offline

    Uhehesh

    I'm working on your plugin. :)
    http://uhehe.ru/airdeath.php
    You will see download link and some info when finished. :)

    Edit: this was for Grefuntor only, I thought it is PM. :D
     
  15. Offline

    Grefuntor

    Cool, i'll keep an eye on the link :)
     
  16. Offline

    Specops343

    Are you going to submit this plugin when you are done?
     
  17. Offline

    Uhehesh

    I think no. It is exclusive for Grefuntor. :D
    If you want, send me a PM.
     
Thread Status:
Not open for further replies.

Share This Page