
LoadedMetadataEvent does not fire off on Folia
CorruptedGreed opened this issue ยท 1 comments
What steps will reproduce the problem?
- Launch a Folia server jar with a plugin listening for LoadedMetadataEvent
public class LoadedMetaDataListener implements Listener {
@EventHandler
public void onMetaLoaded(LoadedMetadataEvent event) {
System.out.println("LoadedMetadataEvent event happened");
}
}
What is the expected output?
"LoadedMetadataEvent event happened" printed in console
Towny version
Towny 0.100.3.0
Server version
1.20.4 Folia
Please use Pastebin.com to link the following files
- Your full server startup from the logs\latest.log: https://pastebin.com/8uPpGuSm
- Your Towny config.yml: https://pastebin.com/Uzuk0rL8
- Your townyperms.yml: https://pastebin.com/pbZJuSut
This bug was fixed in the affected plugin by registering the deserializer in onLoad instead of onEnable, since the event currently does not fire if no metadata was loaded - #7531 addresses that