Exploration Reward

Discussion in 'Archived: Plugin Requests' started by drewdotpro, Aug 8, 2014.

  1. Offline

    drewdotpro

    Reward players for exploring new territory

    How:
    1. On Event: http://jd.bukkit.org/beta/apidocs/org/bukkit/event/world/ChunkPopulateEvent.html
    2. Get the XZ of the centre of the chunk (x + 8, z+ 8)
    3. Find closest player using http://www.snip2code.com/Snippet/18108/Get-nearest-player-Bukkit- or any of the many many results on google for such a thing.
    4. Reward them

    Rewards:
    Hopefully configurable by config.yml
    • XP would be easy
    • Items and percentage chance?

    Very Optional Ideas:
    • Would be nice if world specific.
    • An exploration level for players just for bragging rights (or increased hunger resistance or speed or something?)
     
  2. Offline

    kps1796

    drewdotpro likes this.
  3. Offline

    drewdotpro

    Awesome! Thank you!
     
  4. Offline

    kps1796

    drewdotpro likes this.
  5. Offline

    drewdotpro

  6. Offline

    kps1796

  7. Offline

    drewdotpro

  8. Offline

    kps1796

Share This Page