Help using ConfigurationSection

Discussion in 'Spigot Plugin Development' started by Tabbin, Feb 13, 2019.

  1. Code (Text):
    Arenas:
          whatever_you_choose:
                 location: <serialized location>
    I don't know how Location is serialized, you can find that out by setting some value as a Location and saving the config.
     
  2. You'd have to serialize the location on your own. You're likely better off saving the world and x, y, and z coordinates instead. Also the yaw and pitch if you want them to be facing a certain direction.
     
  3. iirc locations automatically convert from object to string (might be completely wrong though).

    Is there an error?
     

Share This Page