Skip to content

About

WorldGuard-Customize - fork of WorldGuard 7.0.17 with fully configurable messages.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

WorldGuard-Customize

WorldGuard-Customize

License: LGPL v3

WorldGuard-Customize is a fork of WorldGuard 7.0.17 whose main goal is fully configurable, color-aware plugin messages.

The gameplay behavior of WorldGuard is preserved. The internal plugin name remains WorldGuard so existing addons and depend: [WorldGuard] declarations continue to work.

Features

  • Every player-facing message can be edited in plugins/WorldGuard/messages.yml.
  • The messages file is generated automatically on first startup.
  • /wg reload reloads both the plugin configuration and messages.yml.
  • The default messages file is English. A Russian translation is generated as messages_ru.yml.
  • Messages support:
    • legacy ampersand colors: &c, &l, &o, ...
    • HEX colors: &#ffaa00
    • Spigot-style HEX colors: &x&f&f&a&a&0&0
    • already serialized section codes: §c, §x§f§f§a§a§0§0
  • Placeholders use the {name} syntax, for example {player}, {region}, {world}, {amount}, and {prefix}.
  • Covers command output, errors, region info/flags/list interfaces, protection notices, default flag deny/entry/exit/teleport messages, blacklist notifications, and listener messages.
  • Region greeting, farewell, deny, and teleport messages also support HEX colors.
  • Built for Paper 1.21.11 and Java 21 on top of WorldGuard 7.0.17.

Requirements

Installation

  1. Download WorldGuard-Customize-7.0.17.jar from the Releases page or build it from source.
  2. Place the jar in your server's plugins/ directory.
  3. Install WorldEdit.
  4. Start the server.
  5. Edit plugins/WorldGuard/messages.yml and run /wg reload.

Messages

English (default)

messages.yml is created in English on first startup:

language: en
prefix: "&8[&6WorldGuard-Customize&8]&r "

general:
  no-permission: "{prefix}&cYou don't have permission to do that."

protection:
  chest:
    protected: "{prefix}&4This chest is protected."
    # HEX colors are supported as well:
    # protected: "{prefix}&#ff5555This chest is protected."

Russian

A Russian translation is generated as messages_ru.yml.

To use it, replace messages.yml with messages_ru.yml (or copy its contents into messages.yml) and make sure the file contains:

language: ru

Then run /wg reload.

Colors and placeholders

Format Example Notes
Legacy ampersand &c, &l, &o Standard Minecraft color codes
HEX &#ffaa00 Full RGB color
Spigot HEX &x&f&f&a&a&0&0 Full RGB color
Section codes §c, §x§f§f§a§a§0§0 Already serialized codes

Placeholders are written in braces:

commands:
  god:
    enabled-by: "{prefix}&aGod mode enabled by {sender}."

The prefix value can be referenced anywhere with {prefix}. Set it to an empty string to disable the prefix.

Reloading

/wg reload

This reloads config.yml, per-world configuration, region data, and messages.yml. Changes to messages do not require a server restart.

Compatibility

  • The plugin name in plugin.yml is WorldGuard, so plugins that depend on WorldGuard keep working.
  • The build, version string, description, and messages are branded as WorldGuard-Customize.
  • The build version is based on WorldGuard 7.0.17.

Building

The project uses the Gradle wrapper:

./gradlew :worldguard-bukkit:build -x check

The distributable jar is written to:

worldguard-bukkit/build/libs/worldguard-bukkit-7.0.17-Customize-dist.jar

Project Structure

  • worldguard-core — platform-independent WorldGuard code and the messages system.
  • worldguard-bukkit — Bukkit/Paper implementation and the final shaded jar.
  • worldguard-libs — bundled libraries.
  • worldguard-core/src/main/resources/messages.yml — English default messages.
  • worldguard-core/src/main/resources/messages_ru.yml — Russian translation.

Notes

  • Exact HEX colors are preserved in normal chat messages. Interactive components that use WorldEdit's legacy text API (for example some hover/click labels in region menus) approximate HEX colors with the closest legacy color.
  • Command descriptions and usage annotations are part of WorldGuard's command metadata and are not stored in messages.yml.

License

WorldGuard-Customize is licensed under the GNU Lesser General Public License v3.0 or later.

See LICENSE for the full license text. The original WorldGuard copyright notices and the bundled Priority R-Tree license notice are retained.

Credits

  • WorldGuard by sk89q and contributors.
  • WorldEdit by EngineHub and contributors.
  • All upstream WorldGuard contributors.

Links

About

WorldGuard-Customize - fork of WorldGuard 7.0.17 with fully configurable messages.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages