Skript Version: Skript 2.2 (dev28c)
Skript Author: Bensku
Minecraft Version: 1.11.2
---
My whole goal of this skript is to make it so the user of the skript can customize the format for the page selection bar, and the arrows or what they use for the page buttons will have json implemented into them. for instance
<left='&c<---'> will make the left arrow for:
<--- Page: 2 --->
and it will have json implemented into it
I need a way to take what is inside my placeholders ''s and make that the text shows and a button that clicks.
But I do not know how to make the skript find <left='(some text)'> to then replace it with the (some text).
Full Code:
Addons using (including versions):
I am using json.sk.
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? Somewhat, did not know exactly what to search, I tried searching string variable replacement.
What other methods have you tried to fix it? none, just searched and searched.
Skript Author: Bensku
Minecraft Version: 1.11.2
---
My whole goal of this skript is to make it so the user of the skript can customize the format for the page selection bar, and the arrows or what they use for the page buttons will have json implemented into them. for instance
<left='&c<---'> will make the left arrow for:
<--- Page: 2 --->
and it will have json implemented into it
I need a way to take what is inside my placeholders ''s and make that the text shows and a button that clicks.
But I do not know how to make the skript find <left='(some text)'> to then replace it with the (some text).
Full Code:
code_language.skript:
options:
Format: <left='&c<---'> Page = <pgNum> <right='&a--->'>
command /page <number>:
trigger:
set {_fmt} to "{@Format}"
replace all "<pgNum>" in {_frmt} with "%arg 1%"
replace all "<left='(text)'>" in {_frmt} with "(text)||cmd:/page 0"
json ("%player%", "%{_frmt}%")
Addons using (including versions):
I am using json.sk.
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? Somewhat, did not know exactly what to search, I tried searching string variable replacement.
What other methods have you tried to fix it? none, just searched and searched.