Would like help making a plugin! (Random Respawn/Item Persistance)

Discussion in 'Archived: Plugin Requests' started by confuzzled77, Mar 6, 2012.

  1. Offline

    confuzzled77

    Hey everyone, I have started watching videos on how to make plugins, but frankly, I'd rather have someone there to help out. I feel I can understand what is going on, but couldn't reproduce it. :(

    You aren't going to do all the work! I want to learn, and I promise I won't be annoying! :D

    Here is what I want to make..A plugin that will Put you in a random spot on the map after you die/when you log in, and if you die, you have a %chance to keep some items in your inventory. (This part is optional if you don't know how to do it!)
    EDIT: There is an open source plugin called CakeMinersApocalypse that has the Random Respawn feature, I have tried just throwing it all in there and editing a couple of things, but it didn't work out.

    OpenSource, feel free to steal it! I just want some help. Anyone willing or have any other questions? Feel free to post here or email@ [email protected] Thanks in advance.
     
  2. Offline

    mushroomhostage

    For what it's worth, there's another random spawn icon out there: Random Spawn. However I've found Cake's Miner Apocalypse random spawning to be more reliable than Random Spawn. Neither have the % chance of keeping items feature, however. Anyone want to take up this request? Or if not, are there any other good random spawning plugins out there anyone can recommend?
     
  3. Offline

    confuzzled77

    Thank you very much for the post.

    I only know of a couple of devs, but let's try adding some.
    @wide_load (YouTube vids are awesome) (hope I'm thinking of the right guy)
    codename_B (love your work!) (always helpful)
    EllBristow (great ideas) (Opensource)
    yourfunworld (lots of plugins lately) (also great ideas)

    Edit: ah, wide_load didn't pull up? I know he makes plugins..
    Edit2: cakenggt (already made this, would probably be the best for this)
     
  4. Offline

    EllBristow

    Hi confuzzled. Did you get someone to make this for you? Thanks for tagging me... nice to be recognised :)
     
  5. Offline

    confuzzled77

    Seems like Random Spawn that mushroom referenced got updated, and several options for saving inventory came out as well. Combined, those will work just fine.

    Thanks!
     
  6. Offline

    Josvth

    Could you be so kind to tell me what you find less reiable about my plugin?

    There are a few differences between my plugin and CakeMiners. For example my plugin checks if the respawn location is save, if there's no lava, fire etc. And it is capable to random spawn players more than 4 million blocks away without lag. However CakeMiners plugin has some cool features that could really improve the gameplay. I think you should see what works best for your server.

    As for the keeping your inventory thing. I guess there are a few plugins that have this feature. However if you like to learn how to develop plugins this might be a good starter. You can always contact me if you need help. Just mail or skype me. Skypename: josvth94, mail: [email protected]

    Kind regards,

    Josvth autor of Random Spawn
     
  7. Offline

    mushroomhostage

    Hey Josvth thanks for replying! I was getting the errors in ticket 1 last time I tried Random Spawn, but I tried the latest version just now, and it is working well. May have been a problem specific to my configuration, or due to the older versions, but whatever I was seeing seems to be fixed now. Also several other servers I know of are using your plugin with a setup similar to mine, so I'm pretty sure whatever bug I was seeing has been squashed, thanks!

    I'm glad to switch, too, I like your plugin for exactly the reasons you mention, how it spawns the user safely, avoiding lava, water, cacti, etc. It does work pretty well with Cake's Miner Apocalypse; actually, the two most popular servers I know of running CMA use Random Spawn for the spawning. I'm quite glad Random Spawn works, now I don't have to write my own plugin :). One question though, might as well ask here since you're reading this, I see you have the plugin licensed as GPLv3 – is the source published somewhere? I'm not seeing it in the downloaded jar, and the repository link says its private. Would be nice to have the source, I wouldn't mind implementing a few enhancements like this myself =)
     
  8. Offline

    Josvth

    No the source is not published. I tried to set up a Github but I didn't quite figure out how to. Anyway, you may just decompile the jar or I could e-mail you my eclipse project if you like.

    And if you have any suggestion for new features. Just let me know!
     
  9. Offline

    mushroomhostage

    I was about to email you but see you've since posted the source to GitHub at https://github.com/Josvth/Random-Spawn – thanks! Considering adding some interesting apocalypse/solitude-related features (details to be determined), if I succeed I'll contribute back my changes if you would like :).
     
  10. Offline

    Josvth

    Okay! I'm curious about what kind of features you will add :) Send me a PM if you made any progress.
     

Share This Page