#Java 21 & PowerNukkitX Plugin Loading Issue

1 messages · Page 1 of 1 (latest)

proven yew
#

PowerNukkitX 2.0.0-SNAPSHOT doesn’t run plugins on Java 21 unless you start the server with the required --add-opens flags.
Otherwise, plugins throw an InaccessibleObjectException.

This isn’t a plugin issue, it’s due to Java 21 module restrictions.

zenith steppe
#

PNX requires Java 21 or above. Therefore you need to add those flags, that's correct