Jump to content

About title

Not a Bug 1.0.3 1.0.3

maxalt
maxalt

Posted

Thank you for this amazing plugin!
Does the lang/en/AdminWarn.json file in this plugin support rich text?

 

I’d love it if rich text like this could be applied:
<size=5> test </size>

 

I use Japanese, but when I edit the lang file, any text that overflows doesn’t get displayed.

maxalt

Posted

Thank you for this amazing plugin!
Does the lang/en/AdminWarn.json file in this plugin support rich text?

 

I’d love it if rich text like this could be applied:
<size=5> test </size>

 

I use Japanese, but when I edit the lang file, any text that overflows doesn’t get displayed.

fullwiped

Posted

5 hours ago, maxalt said:

Thank you for this amazing plugin!
Does the lang/en/AdminWarn.json file in this plugin support rich text?

 

I’d love it if rich text like this could be applied:
<size=5> test </size>

 

I use Japanese, but when I edit the lang file, any text that overflows doesn’t get displayed.

Hello, sorry for the late reply.
Please send me the language file you’d like to use and I’ll take a look.
The plugin is primarily designed for English, but if it’s feasible, I’ll try to add support for Japanese characters, although I can’t promise anything.

maxalt

Posted

{
  "NoPermission": "You don't have permission to use this command.",
  "WarnUsage": "Usage: /warn <player name or steamid> <message>",
  "PlayerNotFound": "Player not found. Use SteamID for offline players.",
  "DuplicateWarning": "Duplicate warning prevented for player {0}",
  "WarningSent": "Warning sent to {0}: {1}",
  "WarningSaved": "Warning saved for offline player {0}.",
  "WarnAllUsage": "Usage: /warnall <message>",
  "WarnAllSent": "Global warning sent to {0} online players: {1}",
  "ConsoleWarnUsage": "Usage: warn <player name or steamid> <message>",
  "ConsoleWarnAllUsage": "Usage: warnall <message>",
  "AcknowledgeThanks": "Thank you for acknowledging the warning.",
  "GuiTitle": "SERVER WARNING",
  "GuiButtonText": "✔  I understood | ✔  理解しました。",
  "GuiDatePrefix": "Date",
  "GuiWarningFormat": "Hello {0}, you have received a warning.\n{0}様、鯖缶から警告を受けています。"
}

Thank you.
Putting Japanese aside, for now I’d be happy if commands like <size> and <color=> were supported/applied!

At the moment, it doesn’t seem to be applied even when this .json file is loaded.

fullwiped

Posted

Good news, rich text is fully supported in the plugin already, no update needed. You can freely use <color=#hex>, <size=N>, <b> and combine/nest them inside any lang value.

Here's an example based on your file with Japanese text sized down to 11:

 

{
  "NoPermission": "You don't have permission to use this command.",
  "WarnUsage": "Usage: /warn <player name or steamid> <message>",
  "PlayerNotFound": "Player not found. Use SteamID for offline players.",
  "DuplicateWarning": "Duplicate warning prevented for player {0}",
  "WarningSent": "Warning sent to {0}: {1}",
  "WarningSaved": "Warning saved for offline player {0}.",
  "WarnAllUsage": "Usage: /warnall <message>",
  "WarnAllSent": "Global warning sent to {0} online players: {1}",
  "ConsoleWarnUsage": "Usage: warn <player name or steamid> <message>",
  "ConsoleWarnAllUsage": "Usage: warnall <message>",
  "AcknowledgeThanks": "Thank you for acknowledging the warning.",
  "GuiTitle": "<color=#FFFF00><b>SERVER WARNING</b></color>",
  "GuiButtonText": "<size=24><b>✔  I understood | <size=11>✔  理解しました。</size></b></size>",
  "GuiDatePrefix": "Date",
  "GuiWarningFormat": "Hello {0}, you have received a warning.\n<color=#FFD700><size=11>{0}様、鯖缶から<b>警告</b>を受けています。</size></color>"
}

 

Screenshot 2026-04-27 091423.png

fullwiped

Posted (edited)

But please keep in mind that Rust and this plugin have some GUI and text limitations in this area. You can customize it like in the example.

If you need any further help, feel free to message me. When I’m available and back at the office, I’ll try to help.

Edited by fullwiped
maxalt

Posted

Thank you!! You’re a genius!
By the way, is it possible to display the “I understood” button over two lines vertically?
I don’t mind if either Japanese or English is smaller.

fullwiped

Posted

Glad it worked 🙂 To keep the GUI standards intact, it’s best to keep it on a single line.

fullwiped

Posted

Changed Status from Pending to Not a Bug

Changed Fixed In to 1.0.3

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11k
Customers served
Files Sold
157.6k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.