Move Data After Storage Changed, Closes #75
After someone reloads the plugin and they've switched the storage system then put the data, if any exists, into the new storage system. This means a player can go from flatfile to mysql or from mysql to flatfile without having to do any manual work.
This commit is contained in:
@ -161,7 +161,7 @@ public class Jail {
|
||||
|
||||
/** Adds a cell to the Jail. */
|
||||
public boolean addCell(Cell cell, boolean save) {
|
||||
if(save) plugin.getJailIO().saveCell(this, cell);
|
||||
if(save) plugin.getJailIO().saveCell(this, cell, false);
|
||||
|
||||
//Check if it already exists or not
|
||||
if(this.cells.containsKey(cell.getName())) return false;
|
||||
|
Reference in New Issue
Block a user