Jump to content

Discord message localisation

Pending 2.4.1

VENIQQ
VENIQQ

Posted

It would be great if you could add localisation keys for Discord event name (and messages).
I had it changed directly in the plugin, however that is overwritten each time new version is released.

CleanShot 2026-04-11 at 08.03.00@2x.png

aimacak

Posted

19 hours ago, VENIQQ said:

It would be great if you could add localisation keys for Discord event name (and messages).
I had it changed directly in the plugin, however that is overwritten each time new version is released.

CleanShot 2026-04-11 at 08.03.00@2x.png

Hello, as far as I can see, including from your screenshot, messages are sent to discord from keys that are in lang files, why are you changing them in *.cs?
 

["KillBradley"] = "{0} <color=#55aaff>{1}</color> <color=#738d43>destroyed</color> the tank!",
VENIQQ

Posted

14 hours ago, aimacak said:

Hello, as far as I can see, including from your screenshot, messages are sent to discord from keys that are in lang files, why are you changing them in *.cs?
 

["KillBradley"] = "{0} <color=#55aaff>{1}</color> <color=#738d43>destroyed</color> the tank!",



I want to change values sent to discord channel e.g. change "HarborEvent" value to "My Specific Event name".

1) it's not editable in JSON config. I can only change in-game chat prefix  "Chat settings". In discord it it still stays "HarborEvent" regardless of the value I use here.

"Chat setting": {
    "Do you use the chat? [true/false]": true,
    "Prefix of chat messages": "[Ventspils Harbor]"
  },


2) It's not available in lang files as well, as you can see below

{
  "PreStart": "{0} Valuable cargo will begin unloading from the cargo ship at harbor in <color=#55aaff>{1}</color>!",
  "Start": "{0} The cargo ship <color=#738d43>arrives</color> at harbor in (square <color=#55aaff>{1}</color>)\nCargo unloading will <color=#738d43>begin</color> soon!\nCamera: <color=#55aaff>{2}</color>",
  "PreFinish": "{0} Cargo ship unloading will <color=#ce3f27>finish</color> in <color=#55aaff>{1}</color>!",
  "Finish": "{0} Cargo ship unloading <color=#ce3f27>completed</color>! The ship will head away from the island now",
  "SetOwner": "{0} Player <color=#55aaff>{1}</color> <color=#738d43>has received</color> the owner status for the <color=#55aaff>Harbor Event</color>",
  "EventActive": "{0} This event is active now. To finish this event (<color=#55aaff>/harborstop</color>), then (<color=#55aaff>/harborstart</color>) to start the next one!",
  "EnterPVP": "{0} You <color=#ce3f27>have entered</color> the PVP zone, now other players <color=#ce3f27>can damage</color> you!",
  "ExitPVP": "{0} You <color=#738d43>have left</color> the PVP zone, now other players <color=#738d43>cannot damage</color> you!",
  "HeliArrive": "{0} A patrol helicopter <color=#ce3f27>has been called</color> to protect some of the important loot at the harbor!",
  "KillBradley": "{0} <color=#55aaff>{1}</color> <color=#738d43>destroyed</color> the tank!",
  "OpenDoor": "{0} <color=#55aaff>{1}</color> <color=#738d43>started</color> unloading a container with valuable loot!",
  "NTeleportation": "{0} You <color=#ce3f27>cannot</color> teleport into the event zone!",
  "SendEconomy": "{0} You <color=#738d43>have earned</color> <color=#55aaff>{1}</color> points in economics for participating in the event",
  "NoCommand": "{0} You <color=#ce3f27>cannot</color> use this command in the event zone!"
}


 

  • Like 1
aimacak

Posted

30 minutes ago, VENIQQ said:



I want to change values sent to discord channel e.g. change "HarborEvent" value to "My Specific Event name".

1) it's not editable in JSON config. I can only change in-game chat prefix  "Chat settings". In discord it it still stays "HarborEvent" regardless of the value I use here.

"Chat setting": {
    "Do you use the chat? [true/false]": true,
    "Prefix of chat messages": "[Ventspils Harbor]"
  },


2) It's not available in lang files as well, as you can see below

{
  "PreStart": "{0} Valuable cargo will begin unloading from the cargo ship at harbor in <color=#55aaff>{1}</color>!",
  "Start": "{0} The cargo ship <color=#738d43>arrives</color> at harbor in (square <color=#55aaff>{1}</color>)\nCargo unloading will <color=#738d43>begin</color> soon!\nCamera: <color=#55aaff>{2}</color>",
  "PreFinish": "{0} Cargo ship unloading will <color=#ce3f27>finish</color> in <color=#55aaff>{1}</color>!",
  "Finish": "{0} Cargo ship unloading <color=#ce3f27>completed</color>! The ship will head away from the island now",
  "SetOwner": "{0} Player <color=#55aaff>{1}</color> <color=#738d43>has received</color> the owner status for the <color=#55aaff>Harbor Event</color>",
  "EventActive": "{0} This event is active now. To finish this event (<color=#55aaff>/harborstop</color>), then (<color=#55aaff>/harborstart</color>) to start the next one!",
  "EnterPVP": "{0} You <color=#ce3f27>have entered</color> the PVP zone, now other players <color=#ce3f27>can damage</color> you!",
  "ExitPVP": "{0} You <color=#738d43>have left</color> the PVP zone, now other players <color=#738d43>cannot damage</color> you!",
  "HeliArrive": "{0} A patrol helicopter <color=#ce3f27>has been called</color> to protect some of the important loot at the harbor!",
  "KillBradley": "{0} <color=#55aaff>{1}</color> <color=#738d43>destroyed</color> the tank!",
  "OpenDoor": "{0} <color=#55aaff>{1}</color> <color=#738d43>started</color> unloading a container with valuable loot!",
  "NTeleportation": "{0} You <color=#ce3f27>cannot</color> teleport into the event zone!",
  "SendEconomy": "{0} You <color=#738d43>have earned</color> <color=#55aaff>{1}</color> points in economics for participating in the event",
  "NoCommand": "{0} You <color=#ce3f27>cannot</color> use this command in the event zone!"
}


 

I get it, thanks for the explanation. I asked KpucTaJI a question, so far I can't even make my assumptions, because it comes from the name of the plugin, and I can't know if it can be changed or if any problems are possible because of this. I'll let you know as soon as I have information.

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.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
156.3k
Marketplace sales
Payments
3.3m
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.