Skip to content

Commit

Permalink
Update ChestShopSign to persist sign data
Browse files Browse the repository at this point in the history
The ChestShopSign class has been updated to correctly persist sign data. An update method call has been added after setting persistent data, to ensure changes are saved and persisted within the server.
  • Loading branch information
Feli499 committed Jan 1, 2024
1 parent 5e125ed commit c0d7234
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -159,6 +159,7 @@ public static void saveChestShopMetaData(Sign sign, ChestShopMetaData chestShopM

String string = yamlConfiguration.saveToString();
sign.getPersistentDataContainer().set(METADATA_NAMESPACED_KEY, PersistentDataType.STRING, string);
sign.update();

} catch (Exception e) {
Bukkit.getLogger().log(Level.WARNING,
Expand Down

0 comments on commit c0d7234

Please sign in to comment.