WorldEdit and Configs

Discussion in 'Plugin Development' started by Chibbey, Feb 9, 2014.

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

    Chibbey

    Hello, So I am trying to make a parkour plugin that has levels. So once you complete level 1 you can goto level 2. But I need it so once they get to the end of the parkour course they walk into the worldedit selection that gets saved into the config and they get added to an ArrrayList called level1, level2, etc.. So if there in ArrayList Level1 they can only go into level1 and if there in Level2 they can goto Level2 but they will still be added in Level1 so they can do level1 and level2. Only problem is I have never worked with WorldEdit. I was just reading up a little on it and to get a selection is is getSelection(). But That's all I Know and still I don't understand that much. How would I make it so when they type
    "/parkour end 1" it will get their selection and save that selection in the config so I can check if someone walked into that selection it will add them to a ArrayList or just to a List in the Config and teleport them to the parkour spawn which is also specified in the config.

    - So what I need help with is how do I check if someone has walked in a saved selection In the Config.
    - How do I save selections into the Config
    - Whats the code for getting a selection
    - How do I save a list a peoples names into a List that's in the Config

    Please help me.. I know this is a lot but Im trying to learn.
     
  2. Offline

    HungerCraftNL

    This is a lot of work to do, you don't know how to add players into a list in the config file?
     
  3. Offline

    Chibbey

Thread Status:
Not open for further replies.

Share This Page