Add Lines Expression
Suggestion
Adding the expression "[all] lines" for signs
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/Sign.html#getLines()
I don't know if it is possible to set all lines as well. currently in the using,
on sign change:
loop 4 times:
set line loop-number of event-block to colored line loop-number of event-block
but the below does not work, does anyone have a solution for me?
on sign change:
set event.getLines() to colored event.getLines()
Why?
so i dont need to look in each line for words
Other
No response
Agreement
- [X] I have read the guidelines above and confirm I am following them with this suggestion.
There is an unfinished code for this in #4584. Someone who is interested can continue.
Skacket has this syntax because Skacket also has sign gui's, only usable for the sign change event and not the block directly, because I think this belongs in Khoryl, an add-on that deals with runtime erroring of entities and block data https://github.com/TheLimeGlass/Skacket/blob/master/src/main/java/me/limeglass/skacket/elements/expressions/ExprLines.java
Khoryl can get the glowing text state, editable and text of signs given the block type.