Solved Handling delimiters in config

Discussion in 'Plugin Development' started by ohtwo, Feb 18, 2013.

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

    ohtwo

    Hey guys, I want to be able to store Locations in my configs by using the following example format:
    Code:
    Locations:
      - x,y,z,pitch,yaw 
      - x,y,z,pitch,yaw
    
    How would I separate the individual values within each line?
     
  2. Offline

    tkausl

    String s = "x,y,z,pitch,yaw";
    String[] parts = s.split(",");
     
    ohtwo likes this.
  3. Offline

    ohtwo

    Hm, but how would I grab the individual parts?

    EDIT: Ohhhh its an array! Lol.
     
Thread Status:
Not open for further replies.

Share This Page