How to list warps?

Discussion in 'Plugin Development' started by jebbo, Dec 1, 2013.

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

    jebbo

    How can i list my warps from the config?

    Config is like this:

    warps.spawn
    warps.event
    warps.pvp
     
  2. Offline

    The Fancy Whale

    You should use strings.
     
  3. Offline

    jebbo

    How? I don't get it.
     
  4. Offline

    themuteoneS

    Simple,
    After you get the values from the config, split them into a String[] like so:
    Code:java
    1. //public String[] String.split(String regex)
    2. String seperator = "your seperator";
    3. String[] s = stringloadedfromconfig.split(separator);
    4. //Use that meathod if you want to select only certain objects from you're loaded string
    5. //If you want to just print the values then load them and send it directly to the player
    6.  

    If you need anything else (or if I didn't answer your question) feel free to ask.
     
Thread Status:
Not open for further replies.

Share This Page