Skip to content

HeroxWar/WorldGuard-Patched

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WorldGuard "PATCHED"

WorldGuard Logo

This is a patched version of WorldGuard that has many changes from the original version.

Current WorldGuard Patched Official WorldGuard version

Changes

  • Disabled General commands: [/god, /ungod, /heal, /slay, /locate, /stack]

Getting started

  1. Clone the repository
  2. Run git submodule update --init --recursive to get the submodules
  3. Apply patches (see below)

(For developer) If you want to create a patch

  1. Go inside the submodule folder work/WorldGuard/
  2. Type git add .
  3. Now commit your changes with git commit -m "your message" (push is not needed)
  4. Now create a patch (see below)

If you want to compile

  1. Follow the "Getting started steps"
  2. Go inside the submodule folder work/WorldGuard/
  3. Now you can run the compile commands (see below)

If you want to update the submodules to the last version

  1. Be sure to save the current patches before to continue
  2. In project root folder type git submodule update --remote --force
  3. Now you can applay again the patches (see below)



How to create a patch from last commit

run the following command in the folder work/WorldGuard/

git format-patch -1 -o ../../patches/ --start-number ((dir ../../patches/).Count + 1)

How to apply patches

run the following command in the folder work/WorldGuard/ directory of the project (use PowerShell)

git am (dir ../../patches/*.patch) --3way

How to remove patches

run the following command in the root directory of the project

git restore . --recurse-submodules


How to Build?

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.)