wow it's been a while... I'm trying to make a softcoded kit system with a /kit list command.
however, for users that do not have permission to view kits with assigned permissions, I want them hidden from the list and replaced with another kit.
Note:
all variables are correctly defined
Skript version + addons
Skript 2.6.5-for-1.8
Sk-gui 1.3
however, for users that do not have permission to view kits with assigned permissions, I want them hidden from the list and replaced with another kit.
Note:
all variables are correctly defined
Code:
loop 6 times:
loop {kits::*}:
if {_items} is greater than 6:
stop loop
if {_z} is not set:
stop loop
if {_kits::*} doesn't contain loop-value-2:
add loop-value-2 to {_kits::*}
set {_k} to {_kits::%{_z}%}
if {kits::%{_k}%::perm} is set:
send ""
if executor has permission "kits.%{kits::%{_k}%::perm}%":
set {_n} to {kits::%{_k}%::display}
set {_d} to {kits::%{_k}%::desc}
if {_k} is not set:
stop loop
add 1 to {_z}
send "&8⇨ &r%{_n}% &8- &r%{_d}%"
add 1 to {_items}
else:
set {_n} to {kits::%{_k}%::display}
set {_d} to {kits::%{_k}%::desc}
if {_k} is not set:
stop loop
add 1 to {_z}
send "&8⇨ &r%{_n}% &8- &r%{_d}%"
add 1 to {_items}
Skript version + addons
Skript 2.6.5-for-1.8
Sk-gui 1.3
Last edited: