CoreProtect

CoreProtect

1M Downloads

[Bug] Signs with nested translations cause server to freeze

KadTheHunter opened this issue ยท 1 comments

commented

Placing or Breaking a sign with nested translations (commonly known as a "translate crash"), while CoreProtect has sign logging enabled, will cause CoreProtect to freeze or even crash the server.

CoreProtect Version: CoreProtect Edge v23.2-RC5

Relevant Logs: https://mclo.gs/8vavPQU#L1071

The sign:

/give @p minecraft:crimson_sign[minecraft:block_entity_data={front_text:{messages:['{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":[{"translate":"%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s","with":["LOL"]}]}]}]}]}]}]}]}]}]}','""','""','""']},id:"sign"}] 1

You will need to use that in console due to the length of the command.

Other Notes:

  • I believe this is ultimately an issue with Adventure API's component flattener, though I'm reporting it here as it's technically caused by CoreProtect, and you will likely know more than me
  • While the give command shown above needs to be run through console, it is completely possible to obtain this sign from client side mods so long as you have creative mode on the server; The only solution as a server owner is to either disable sign-logging (which isn't exactly desirable), or introduce ridiculous (and often poorly implemented) restrictions.
commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.