I have these code
After i type /tuchetao and /tctinfo it should log me for a list user id in each rank and each block can autocrafting but it not log anything
I use
skript-2.10.1, skBee-3.9.1, skript-placeholder-1.7.0, skRayFall-1.9.28
code_language.skript:
on load:
set {autoCraftBlocks::*} to "packed_ice", "blue_glazed_terracotta", "deepslate_lapis_ore", "lapis_ore" and "deepslate_diamond_ore"
set {listRank::*} to "default", "elite-soldier", "general", "senior-general", "captain", "elite-captain" and "sergeant"
delete {autoCrafting::*}
command /cleartct:
trigger:
delete {autoCrafting::*}
command /tctinfo [<text>]:
trigger:
set {_playerRank} to the value of the placeholder "luckperms_primary_group_name" for the player
send "Here: %{autoCrafting::emoji_stuck_out_tongue:acked_ice::elite-soldier::*}%"
if arg-1 is not set:
loop {autoCrafting::*}:
send "%loop-index-1% %loop-value-1%" to player
loop {autoCrafting::%{loop-value-1}%::*}:
send "%loop-index-2% %loop-value-2%" to player
loop {autoCrafting::%{loop-value-1}%::%{loop-value-2}%::*}:
send "rank: %loop-value-2%, block: %loop-value-1%, id: %loop-value-3%" to player
else:
if size of {autoCrafting::%{arg-1}%::*} is 0:
send "empty" to player
else:
loop {autoCrafting::%{arg-1}%::*}:
send "%arg-1%: %loop-value%" to player
command /tuchetao [<text>]:
trigger:
loop {autoCraftBlocks::*}:
loop {listRank::*}:
set {autoCrafting::%loop-value-1%} to loop-value-1
set {autoCrafting::%loop-value-1%::%loop-value-2%} to loop-value-2
set {_playerRank} to the value of the placeholder "luckperms_primary_group_name" for the player
if {listRank::*} contains {_playerRank}:
send "%{_playerRank}%" to player
if arg-1 is not set:
loop {autoCraftBlocks::*}:
if {autoCrafting::%{loop-value}%::%{_playerRank}%::*} contains player's uuid:
send "remove %player%" to player
remove player's uuid from {autoCrafting::%{loop-value}%::%{_playerRank}%::*}
else:
send "add %player%" to player
add player's uuid to {autoCrafting::%{loop-value}%::%{_playerRank}%::*}
else if {autoCraftBlocks::*} contains arg-1:
if {autoCrafting::%{arg-1}%::%{_playerRank}%::*} contains player's uuid:
remove player's uuid from {autoCrafting::%{arg-1}%::%{_playerRank}%::*}
else:
add player's uuid to {autoCrafting::%{arg-1}%::%{_playerRank}%::*}
I use
skript-2.10.1, skBee-3.9.1, skript-placeholder-1.7.0, skRayFall-1.9.28
Last edited: