Print reason when closing gate on save.
This commit is contained in:
parent
563bdfe2fd
commit
4f89e20e6f
@ -307,7 +307,7 @@ public class Gate implements ConfigurationSerializable
|
|||||||
validate(); // make sure to not write invalid stuff to disk
|
validate(); // make sure to not write invalid stuff to disk
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
Plugin.log("Gate " + this.getId() + " seems to be not valid. It got closed before serializing!");
|
Plugin.log("Gate " + this.getId() + " seems to be not valid. It got closed before serializing! (Reason: " + e.getMessage() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Object> retVal = new HashMap<String, Object>();
|
Map<String, Object> retVal = new HashMap<String, Object>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user