Checking for Folia & Legacy - rodrigoo-r/Harmony GitHub Wiki

Explanation

If, for any reason, you need to check if the server is running Folia or a version under 1.16, you're covered.


Detecting Folia

Inside your plugin class, you have a method named isFolia() that returns a boolean. It will return true if the server is running Folia.


Detecting Legacy

You also have another method named isLegacy() that will return true if the server is running under 1.16.