packagecom.owlmaddie.chat;importnet.minecraft.server.MinecraftServer;/** * The {@code ChatDataAutoSaver} class is a Runnable task, which autosaves the server chat data to JSON. * It can be scheduled with the {@code ChatDataSaverScheduler} class. */publicclassChatDataAutoSaverimplementsRunnable{privatefinalMinecraftServerserver;publicChatDataAutoSaver(MinecraftServerserver){this.server=server;}@Overridepublicvoidrun(){// Your method to save chat dataChatDataManager.getServerInstance().saveChatData(server);}}