I save the locaction on stop in the config:
spawners:
Location{world=CraftWorld{name=spawn},x=-1:
0049623E7,y=-60:
0,z=1:
4479659E7,pitch=0:
0,yaw=0:
0}:
location:
==: org.bukkit.Location
world: spawn
x: -1.0049623E7
y: -60.0
z: 1.4479659E7
pitch: 0.0
yaw: 0.0
amount: 1
but when using config.getLocation("spawners.key.location") it returns null. key is declared in a foreach loop, that loops through all keys in the spawners-category