code_language.skript:
command /permisiuni:
trigger:
open chest with 6 row named "&cPermisiuni" to player
wait 1 tick
if {cumparatwe.%player%} is "buywe":
format slot 0 of player with redstone block named "&cBought!" with lore "5k" to close
if {cumparatfawe.%player%} is "buyfawe":
format slot 1 of player with redstone block named "&cBought!" with lore "5k" to close
if {cumparatvs.%player%} is "buyvs":
format slot 2 of player with redstone block named "&cBought!" with lore "5k" to close
else:
format slot 0 of player with diamond named "WorldEdit" with lore "5k" to close then run "adminwe"
format slot 1 of player with diamond named "fawe.plotsquared" with lore "?" to close then run "adminfawe"
format slot 2 of player with diamond named "voxelsniper.*" with lore "4.5k" to close then run "adminvs"
command /adminwe:
trigger:
execute console command "eco take %player% 5000"
message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a worldedit.*&f!" to player
set {cumparatwe.%player%} to "buywe"
command /adminfawe:
trigger:
execute console command "eco take %player% 5000"
message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a fawe.*&f!" to player
set {cumparatfawe.%player%} to "buyfawe"
command /adminvs:
trigger:
execute console command "eco take %player% 5000"
message "&7[&a&lPermisiuni&7] &fAi cumparat pemisia&a voxelsniper.*&f!" to player
set {cumparatvs.%player%} to "buyvs"
The code , and in console it says
CONSOLE issued server command: /eco take <none> 5000
Error: Player not found.
and it doesn t change in redstone block