To use ForgeEssentials and its powerful permission framework with from another mod, please take a look at the developer documentation in the wiki.
- Download ForgeEssentials with git
- Run ForgeGradle setup
(E.g.,
./gradlew genEclipseRunswhen using eclipse) - Configure the annotation processor as outlined below
- Add ``-Dmixin.env.compatLevel=JAVA_8` to VM Options for both server and client
- Add
--mixin mixins.forgeessentials.jsonto the launch arguments of the server - Add
--mixin mixins.forgeessentials.json --tweakClass org.spongepowered.asm.launch.MixinTweaker --mixin mixins.forgeessentials.client.jsonto the launch arguments of the client
If you open ForgeEssentials in your IDE, you must turn on annotation processing, or your IDE will complain that it cannot find classes like Action_. You also might need to manually add hibernate-jpamodelgen-x.x.x.jar as annotation processor. Please refer to the respective IDE documentation on how to do this.
- Go to
Project Properties>Java Compiler>Annotation processing- Check
Enable annotation processing
- Check
- Go to
Project Properties>Java Compiler>Annotation processing>Factory Path- Add the
hibernate-jpamodelgen-x.x.x.jar.
To find its location, check the referenced libraries in the project settings. It should be located somewhere in
$HOME/.gradle/caches/modules-2/files-2.1/org.hibernate/hibernate-jpamodelgen/x.x.x.Final
- Add the
- Go to
Settings > Build, Execution and Deployment > Compiler > Annotation Processors - Check
Enable annotation processing - Check
Obtain processors from project classpath - Enter
.apt_generatedas "Production sources directory" - Under
Annotation Processors, add this fully qualified name:org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - Run
Build > Rebuild Project - Right click
.apt_generateddirectory and selectMark as > Source directory
- If none of the above options work for your IDEs, you can use do the following.
- Add
/misc/forgeessentials-1.16.5-annonations.jarto your build path.
- Add
- Please consider squashing all commits before initially submitting pull requests
- For a local
.gitignoreuse.git/info/exclude - If you have any questions, join us on IRC