From b7aa75fcd523005814b5b7279687f60593f80c6a Mon Sep 17 00:00:00 2001 From: William Date: Sun, 9 Jun 2024 14:33:26 +0100 Subject: [PATCH] docs: correct typos --- docs/Custom-Data-API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Custom-Data-API.md b/docs/Custom-Data-API.md index 9927aee9..e46b59d5 100644 --- a/docs/Custom-Data-API.md +++ b/docs/Custom-Data-API.md @@ -93,7 +93,7 @@ public class LoginParticleData extends BukkitData implements Adaptable { public class LoginParticleSerializer extends BukkitSerializer.Json implements Serializer { // We need to create a constructor that takes our instance of the API - public GameMode(@NotNull HuskSyncAPI api) { + public LoginParticleSerializer(@NotNull HuskSyncAPI api) { super(api, LoginParticleData.class); // We pass the class type here so that Gson knows what class we're serializing } @@ -148,7 +148,7 @@ LoginParticleData loginParticleData = (LoginParticleData) huskSyncAPI.getUser(pl ``` ### 4.1 Persisting custom data on the DataSaveEvent -Add an EventListener to the `DataSaveEvent` and use the `#editData` consumer method to apply custom data during standard DataSaves. This will persist data to users any time the data save routine executes (on user logout, server shutdownm, world save, etc). +Add an EventListener to the `DataSaveEvent` and use the `#editData` consumer method to apply custom data during standard DataSaves. This will persist data to users any time the data save routine executes (on user logout, server shutdown, world save, etc.) ```java @EventHandler