Closed twseer67875 closed 1 year ago
I am trying to find the approximate reason. It seems that ShopSignUpdateEvent
will be triggered again after using setSignText()
, resulting in a situation similar to an infinite loop. I don’t understand why setSignText()
must be triggered again after use. ShopSignUpdateEvent
, I don't understand why it is designed like this
That's why I said change the sign directly, and setSignText method should result the sign update event, right? So that the infinite loop, if you want to use this anyway, you can simply check if the sign has applied the text you wanted
That's why I said change the sign directly, and setSignText method should result the sign update event, right? So that the infinite loop, if you want to use this anyway, you can simply check if the sign has applied the text you wanted
I've already tried modifying Sign directly using the following method, but still nothing works
event.getSign().line(1, Component.text("example"));
I also tried to compare the strings between each other, but I found that as long as setSignText(); is used and ShopSignUpdateEvent is triggered, the Sign sent back to me by the event will always be the default Sign Text.
That's why I said change the sign directly, and setSignText method should result the sign update event, right? So that the infinite loop, if you want to use this anyway, you can simply check if the sign has applied the text you wanted
I've already tried modifying Sign directly using the following method, but still nothing works
event.getSign().line(1, Component.text("example"));
I also tried to compare the strings between each other, but I found that as long as setSignText(); is used and ShopSignUpdateEvent is triggered, the Sign sent back to me by the event will always be the default Sign Text.
you need to use event.getSign().update(true) to make it take effect
I get the following error message! Version 1.19.4-518:
[16:49:40 WARN]: [QuickShop] [FATAL] Signature Verify: Failed to validate digital signature! Security may be compromised! [16:49:40 ERROR]: [QuickShop] [Security Risk Detected] QuickShop forcing crash the server for security, contact the developer for details. [16:49:40 WARN]: [QuickShop] [Security Risk Detected] To get more details, please check: file:/home/container/plugins/QuickShop/3780b208-46ff-4ebf-b8c1-89fe762dc8b8.security.letter.txt
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.
Description
When I try to execute the following code and
setSignText()
, the server crashes directly, I don’t know whySteps to reproduce
1.Execute the above code 2.Trigger the ShopSignUpdateEvent 3.boom
Expected Behaviour
Will not crash and modify the sign message normally
Screenshots
/qs paste
URLhttps://paste.helpch.at/raw/vuxedogesi
Additional Context
This server is running Paper version git-Paper-307 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 476ef25)