Fix the removing prisoner setting the wrong thing to null.
This commit is contained in:
parent
3405ab100f
commit
33528aee56
@ -968,7 +968,7 @@ public class JailIO {
|
|||||||
if(c == null)
|
if(c == null)
|
||||||
flat.set("jails." + j.getName() + ".prisoners." + p.getUUID().toString(), null);
|
flat.set("jails." + j.getName() + ".prisoners." + p.getUUID().toString(), null);
|
||||||
else
|
else
|
||||||
flat.set("jails." + j.getName() + "." + c.getName() + ".prisoner", null);
|
flat.set("jails." + j.getName() + ".cells." + c.getName() + ".prisoner", null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
flat.save(new File(pl.getDataFolder(), "data.yml"));
|
flat.save(new File(pl.getDataFolder(), "data.yml"));
|
||||||
|
Loading…
Reference in New Issue
Block a user