This is a patched version of WorldGuard that has many changes from the original version.
- Disabled General commands: [
/god, /ungod, /heal, /slay, /locate, /stack
]
- Clone the repository
- Run
git submodule update --init --recursive
to get the submodules - Apply patches (see below)
- Go inside the submodule folder
work/WorldGuard/
- Type
git add .
- Now commit your changes with
git commit -m "your message"
(push is not needed) - Now create a patch (see below)
- Follow the "Getting started steps"
- Go inside the submodule folder
work/WorldGuard/
- Now you can run the compile commands (see below)
- Be sure to save the current patches before to continue
- In project root folder type
git submodule update --remote --force
- Now you can applay again the patches (see below)
run the following command in the folder work/WorldGuard/
git format-patch -1 -o ../../patches/ --start-number ((dir ../../patches/).Count + 1)
run the following command in the folder work/WorldGuard/
directory of the project (use PowerShell)
git am (dir ../../patches/*.patch) --3way
run the following command in the root directory of the project
git restore . --recurse-submodules
Be sure to follow the "Getting started steps" first
⚠ Required Java 21 (only)!
Run the following command in the folder work/WorldGuard/
gradlew build -S
You will find WorldGuard for Bukkit in the folder build
or follow the instructions
inside work/WorldGuard/COMPILING.md
(The -dist
version includes WorldGuard + necessary libraries.)