From ce457fc7bfaa51776affd35ec810adf4a32c8959 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Sat, 28 Dec 2013 15:42:06 -0600 Subject: [PATCH] Derp, save the file when we change it. --- src/main/java/com/graywolf336/jail/JailIO.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/graywolf336/jail/JailIO.java b/src/main/java/com/graywolf336/jail/JailIO.java index 0952f74..d0ea3a6 100644 --- a/src/main/java/com/graywolf336/jail/JailIO.java +++ b/src/main/java/com/graywolf336/jail/JailIO.java @@ -380,6 +380,12 @@ public class JailIO { flat.set("jails." + j.getName() + ".prisoners." + p.getName(), null); else flat.set("jails." + j.getName() + "." + c.getName() + ".prisoner", null); + + try { + flat.save(new File(pl.getDataFolder(), "data.yml")); + } catch (IOException e) { + pl.getLogger().severe("Unable to save the Jail data: " + e.getMessage()); + } break; } }