Язык

⭐ WorldGuard-Translator ⭐ [1.16 - 26.x] | Translate & Customize WorldGuard messages quickly & easily

⭐ WorldGuard-Translator ⭐ [1.16 - 26.x] | Translate & Customize WorldGuard messages quickly & easily

SpigotMC

Translate and customize WorldGuard messages quickly and easily

59 загрузок 5.0 рейтинг
последняя v1.1 SpigotMC
1.16 – 26.1
WorldGuard-Translator

Forget about the hassle of translating WorldGuard. With this plugin, you can easily translate and customize messages from the WorldGuard plugin without modifying the JAR file, for example, using InJarTranslator.

demo.png
(View the current list of translations)

Features

  • High performance and lightweight
  • MiniMessage formatting support
  • Translation of English action keys (e.g., break that block to your own language)
  • Modify messages directly in-game
  • Compatibility with any WorldGuard version
  • Automatic downloading of pre-made translations
  • Send messages via Actionbar

How does the plugin work?

WorldGuard-Translator modifies WorldGuard's code directly in RAM during server startup or plugin reload.
The plugin intercepts the original deny messages ( deny-message) and dynamically replaces English technical strings with your translated equivalents.

Configurations

Code (YAML):
# Pre-made WorldGuard translations.
# Downloaded from https://github.com/SuperCHIROK1/WorldGuard-Translator/tree/main/translations
# You can add your own languages. Create a file inside "translations" folder and name it in <language>.yml format.
# All you need to do is customize the message style to fit your server.
lang
: en
# Prefix for WorldGuard-Translator plugin messages.
# Used in local messages, replaced via %prefix%
prefix
: "&#2bafb6&l[WG-Translator]&f"
# Text formatting serializer.
#
#: LEGACY_AMPERSAND - Traditional legacy color codes (e.g., &c, &l)
#: MINI_MESSAGE - Modern MiniMessage formatting (Paper 1.18+)
#    Learn more about formatting here: https://docs.papermc.io/adventure/minimessage/format/
serializer
: LEGACY_AMPERSAND
# Check for WorldGuard-Translator plugin updates.
# If an update is available, the plugin will notify administrators in the console and chat.
check_updates
: true
# Permission settings.
permissions
:
  admin_command
: "wgtranslator.admin"
  update_log
: "wgtranslator.update"

Code (YAML):
# Deny message template.
# %what% is automatically replaced with the translated string from the "components" section.
deny_message
: "&#ff5400&l❌ Hey! &fSorry, but you can`t &#ff5400%what% &fhere!"
# Translations of specific actions.
# Inserted instead of %what% in deny_message.
# You can add your own translations using /wgt component add <key>; <value>
components
:
  # Block place
  "place that block"
: "place blocks"
  "place fire"
: "ignite the ground"
  "use frostwalker"
: "use Frost Walker"

  # Block break3
  "break that block"
: "break blocks"
  "use dynamite"
: "use dynamite"

  # Block / entity interact
  "use that"
: "use this"
  "open that"
: "open this"
  "sleep"
: "go to sleep"
  "use anchors"
: "use respawn anchor"
  "use explosives"
: "use explosives"

  # Entity spawn / drop
  "place things"
: "place items"
  "place vehicles"
: "place vehicles"
  "drop items"
: "drop items"
  "drop XP"
: "drop XP"
  "use lingering potions"
: "use lingering potions"

  # Entity destroy / pickup
  "break things"
: "break items"
  "break vehicles"
: "break vehicles"
  "pick up items"
: "pick up items"

  # Entity damage / mount
  "change that"
: "modify this"
  "ride that"
: "ride this"
  "hit that"
: "attack this"
  "damage that"
: "damage this"
  "harm that"
: "harm this"
  "PvP"
: "fight players"

messages
:
  reloaded
: "%prefix% &#70e000Plugin successfully reloaded! &#e2eafcNew messages/translations have been applied to WorldGuard. &7(Time: %s ms.)"
  deny_message
:
    installed
: "%prefix% &#70e000Successfully set deny_message!"
    installed_temp
: "%prefix% &#70e000Successfully set temporary deny_message &7(lasts until server or plugin restart)"
  component
:
    added
: "%prefix% &#70e000Successfully added translation: &#2bafb6%s &#a1a8b8-> &#2bafb6%s"
    usage
: "%prefix% &#e2eafcPlease use the format &#2bafb6<key>;<translation>&#e2eafc. Example: &#2bafb6break that block;break blocks"
    list
:
      header
: "&#a1a8b8----- &#2bafb6&lWG-T : Components &#a1a8b8-----\n"
      # {0} - key | {1} - translation
      format
: "&#a1a8b8• &#2bafb6{0} &#a1a8b8-> &#e2eafc{1}"
  help
: |-
    &8 ----- &3&lWorldGuard Translator &8 -----

    &8• &e/ %cmd% &6<reload | restart> &7- &#e2eafcReload the plugin.
    &8• &e/ %cmd% &6component <add | set | list> &7- &#e2eafcManage translations.
    &8• &e/ %cmd% &6denyMessage <set | setTemp> &7- &#e2eafcSet deny_message.

Commands & Permissions

Command Argument Description
/wgt reload / restart / r Reload the plugin
/wgt help Get the help menu
/wgt component add / set <key>;<value> Add or modify a translation string
| list Get a list of all translated strings
/wgt denyMessage set <message> Set <message> as the global denyMessage
| setTemp <message> Set temporary denyMessage until the next server reload


Support & Links

• Leave a Star on the GitHub Repository
• Rate the resource and leave a review/feedback based on your experience
Join our Discord server (you can submit your translations here)

Found a bug or need help?
Please do not report issues or bugs in the reviews section. It is much better and faster to contact the developer directly via:

Our Discord Server / Discussion Thread / GitHub Issues

Tags: How to translate WorldGuard
[​IMG]

Версии

Release
1.1
·
1
Release
1.0.2
·
18
Release
1.0.1
·
6
Release
1.0.0
·
10

Комментарии 0

Пока нет комментариев. Будь первым, кто поделится мнением.

Скачать ⭐ WorldGuard-Translator ⭐ [1.16 - 26.x] | Translate & Customize WorldGuard messages quickly & easily

Файлы отдаются напрямую с первоисточника. Modgrid не хранит и не изменяет их.