HashMap/ArrayList Size

Discussion in 'Plugin Development' started by malikdbuseck, May 3, 2016.

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

    malikdbuseck

    Hello so what I am trying to do is make a way for players to store chunk inside of a config. Basically making what I thought was a simple chunk claiming plugin. So what I want is for player to be able to claim chunks and when they claim chunks they will be stored in the config as:

    Player:
    Chunk_ids:
    - 1
    - 2
    - 3
    - 4​

    but even further I need to store as:

    Player:
    Chunk_ids:
    1:
    X:
    Z:​
    2:
    X:
    Z:​
    So if you find the time could you please help me. Please explain with some matter of detail as it has been awhile since I coded last.
     
  2. What about:
    Code:
    Player:
      - X_Y
      - X2_Y2
      - etc..
    When you get the string just split it at "_" [0] or [1] to get x and y
     
Thread Status:
Not open for further replies.

Share This Page