String ==》Block

Discussion in 'Plugin Development' started by Jumb_1907, May 1, 2017.

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

    Jumb_1907

    Hey,

    I'm currently working on a block breaking plugin and I want to save their locations kn the config. How can I make a Block variable from the string list
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    Jumb_1907

    But the location is still in a String, gow to convert it?
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Jumb_1907 What does your string look like?
    I assume world,x,y,z then split on the comma, get the world and change the x,y,z to ints.
     
  5. Offline

    Jumb_1907

    I'll try that, another question
    My config looks like this:
    Locations:

    But it's empty so when I export my plugin the plugin .yml is empty
     
  6. Offline

    timtower Administrator Administrator Moderator

    @Jumb_1907 Yeah, that is not how you define an empty list.
    Locations: []
     
  7. Offline

    Jumb_1907

    Ohhh thank you SO much
     
Thread Status:
Not open for further replies.

Share This Page