Dungeon Plugin

Discussion in 'WIP and Development Status' started by russ9929, Jun 23, 2012.

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

    russ9929

    I am making a dunegon plugin where you can join, start and leave the dungeon. The dungeon waiting room, starting point and exiting point will be set by warps. I have created the warps in the code, but I don't know how to make it so they save even when the server reloads or the plugin resets. I also want to add it so only 4 people can join at once, but I have no idea how. The other thing I don't know how to do is to give them a set reward for completing the dungeon when they reach a platform or walk threw a portal. If someone can help me 1 on 1 I have teamviewer and Skype and I will send you what I have done so far. I would really appreciate this help.​
     
  2. Offline

    dak393

    Well it depends what data you need to save and how much of it there is, probably easiest way would just be a plain text file or even a YML file. Next up I would probably just use a hashmap to save the player in the dungeons currently active no need to really save that between restarts but you could do that as well and in your warp code just check the players in an area (you could even just store an int of the current number of players and modify it when someone leaves/completes the dungeon and when players join). When a player triggers your end warp you need to make a new item stack of what ever you're giving them and add it to their inventory. You should make sure you read through the tutorial for more help on this as well :)
     
Thread Status:
Not open for further replies.

Share This Page