Now, this doesn't give me any error, but it doesn't let me accomplish what I want it to do.
- I want to click the "Starting Value" part of the configuration and it'll send me What would you like to change <variable> to? Then, I type the value and it sends me <variable> has been changed to <message>. Currently, this is my code:
What I am using: For this, I've been using Skript and TuSKE. However, I also have SkQuery (Lime), and I wouldn't be mad if I have to download another addon. Thanks!
- I want to click the "Starting Value" part of the configuration and it'll send me What would you like to change <variable> to? Then, I type the value and it sends me <variable> has been changed to <message>. Currently, this is my code:
code_language.skript:
on chat:
if {iBasics.config-list::*} contains player:
set {iBasics.config-output::%player%} to message
remove player from {iBasics.config-list::*}
function setVar(v: String , p: Player):
set {iBasics.config-output::%{_p}%} to false
send "&6What would you like to set &c%{_v}% &6to?" to {_p}
add {_p} to {iBasics.config-list::*}
while {iBasics.config-output::%{_p}%} is false:
wait 4 ticks
set {iBasics.config::%{_v}%} to {iBasics.config-output::%{_p}%}
send "&6Successfully set &c%{_v}% to %{iBasics.config-output::%{_p}%}%" to {_p}
function menuOpen(n: String , p: Player):
if {_n} is "economy-config":
open virtual chest inventory named "&2iBasics > Economy > Config" to {_p}
format gui slot 0 of {_p} with paper named "&eStarting Balance" with lore "&8Value:&a %{iBasics.config::startingbal}%" to run function setVar ("startingbal" , player)
format gui slot 1 of {_p} with paper named "&eMinimum Balance" with lore "&8Value:&a %{iBasics.config::minbal}%"
format gui slot 2 of {_p} with paper named "&eMaximum Balance" with lore "&8Value:&a %{iBasics.config::maxbal}%"
format gui slot 3 of {_p} with paper named "&eCurrency Symbol" with lore "&8Value:&a %{iBasics.config::currencysymbol}%"
format gui slot 22 of {_p} with paper named "&c&lBack" to run function menuOpen ("economy" , {_p})
What I am using: For this, I've been using Skript and TuSKE. However, I also have SkQuery (Lime), and I wouldn't be mad if I have to download another addon. Thanks!