This mod uses a Bukkit plugin found https://www.spigotmc.org/resources/bukkit-screen-api.22862. It allows Bukkit servers to see what UI you are currently using.
For this to work you need a Bukkit/Spigot/Other server software that implements the Bukkit API with the BukkitScreenAPI plugin installed.
1.12.2?