mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-03-12 22:59:15 +01:00
Adds json suffix to JSON database files
https://github.com/BentoBoxWorld/BentoBox/issues/502
This commit is contained in:
parent
7b79755d92
commit
271d6aa5e9
@ -99,7 +99,7 @@ public class JSONDatabaseHandler<T> extends AbstractJSONDatabaseHandler<T> {
|
||||
// Obtain the value of uniqueId within the instance (which must be a DataObject)
|
||||
PropertyDescriptor propertyDescriptor = new PropertyDescriptor("uniqueId", dataObject);
|
||||
Method method = propertyDescriptor.getReadMethod();
|
||||
String fileName = (String) method.invoke(instance);
|
||||
String fileName = (String) method.invoke(instance) + JSON;
|
||||
|
||||
File tableFolder = new File(plugin.getDataFolder(), path);
|
||||
File file = new File(tableFolder, fileName);
|
||||
|
Loading…
Reference in New Issue
Block a user