A fork of EssentialsX adapted for Folia, using a Git patch system for easy maintenance and upstream updates.
- Git
- Java Development Kit 21 (JDK)
Compiled JARs are available here: https://github.com/Euphillya/Essentials-Folia/releases
git clone https://github.com/Euphillya/Essentials-Folia.git
cd Essentials-Folia./gradlew applyPatchesThis command will:
- Initialize and clone the EssentialsX submodule.
- Apply all patches from the
patches/folder ontoEssentials-Patched/.
Essentials/: Git submodule pointing to upstream EssentialsX.Essentials-Patched/: Working directory generated byapplyPatches(Git-ignored).patches/:.patchfiles containing Folia modifications.
| Task | Description |
|---|---|
./gradlew applyPatches |
Initializes the submodule and applies patches |
./gradlew makePatches |
Regenerates .patch files from local commits |
./gradlew updateSubmodules |
Updates the submodule from upstream |
# 1. Apply patches
./gradlew applyPatches
# 2. Make your changes in Essentials-Patched/
cd Essentials-Patched
git add .
git commit -m "fix: description of the change"
# 3. Regenerate patches
cd ..
./gradlew makePatches
# 4. Commit the patches
git add patches/
git commit -m "Update patches"
git push./gradlew updateSubmodules
./gradlew applyPatches # resolve conflicts if necessary
./gradlew makePatches
git add Essentials patches/
git commit -m "Update upstream EssentialsX"
git push- Fork this repository.
- Create a branch (
git checkout -b my-feature). - Make your changes in
Essentials-Patched/. - Regenerate patches with
./gradlew makePatches. - Commit and push your patches.
- Open a Pull Request.
For any questions or issues, feel free to open an issue.
This project is licensed under the MIT License. See the LICENSE file for more information.