so heres my code i installed mirror and Skquery but when i run it doesn't work
Variables:
{bal} = 0
{sellerID} = null
{NameS} = null
{CoalAMOUNT} = 15
{IIA} = 35
{slot0} = null
{slot1} = null
function CheckPlayerUUID():
if {sellerID} is the same as {uuid::%player%}:
Bukkit.getPlayer(Name).getName();
Name = {NameS}
message "you can't do that" {NameS}
if {slot0} is coal:
format slot 0 of player with air named "Nothing"
CoalAmount * {_X}
bal - CoalAMOUNT
if {slot0} is iron_ingot:
format slot 0 of player with air named "Nothing"
IIA * {_X}
bal - IIA
if {slot1} is iron_ingot:
format slot 1 of player with air named "Nothing"
IIA * {_X}
bal - IIA
if {slot1} is coal:
format slot 1 of player with air named "Nothing"
IIA * {_X}
bal - IIA
on connect:
if {uuid::%player%} is not set:
set {uuid::%player%} to player's uuid
command /sell player:
set {uuid::%player%} to sellerID
if player's held item is coal:
set {_x} to amount of player's held item in player
open chest with 5 rows named "&5Store" to player
format slot 0 of player with coal named "coal" to close then run [CheckPlayerUUID]
slot0 = Coal
if player's held item is iron_ingot:
set {_x} to amount of player's held item in player
open chest with 5 rows named "&5Store" to player
if player {slot0} isn't air:
format slot 0 of player with iron_ingot named "Iron_Ingot" to close then run [CheckPlayerUUID]
{slot1} = Iron_Ingot
command /buy player:
open chest with 5 rows named "&5Store" to player
format slot 0 of player with {slot0} to close then run [CheckPlayerUUID]
format slot 1 of player with {slot1} to close then run [CheckPlayerUUID]
CheckPlayerUUID
Variables:
{bal} = 0
{sellerID} = null
{NameS} = null
{CoalAMOUNT} = 15
{IIA} = 35
{slot0} = null
{slot1} = null
function CheckPlayerUUID():
if {sellerID} is the same as {uuid::%player%}:
Bukkit.getPlayer(Name).getName();
Name = {NameS}
message "you can't do that" {NameS}
if {slot0} is coal:
format slot 0 of player with air named "Nothing"
CoalAmount * {_X}
bal - CoalAMOUNT
if {slot0} is iron_ingot:
format slot 0 of player with air named "Nothing"
IIA * {_X}
bal - IIA
if {slot1} is iron_ingot:
format slot 1 of player with air named "Nothing"
IIA * {_X}
bal - IIA
if {slot1} is coal:
format slot 1 of player with air named "Nothing"
IIA * {_X}
bal - IIA
on connect:
if {uuid::%player%} is not set:
set {uuid::%player%} to player's uuid
command /sell player:
set {uuid::%player%} to sellerID
if player's held item is coal:
set {_x} to amount of player's held item in player
open chest with 5 rows named "&5Store" to player
format slot 0 of player with coal named "coal" to close then run [CheckPlayerUUID]
slot0 = Coal
if player's held item is iron_ingot:
set {_x} to amount of player's held item in player
open chest with 5 rows named "&5Store" to player
if player {slot0} isn't air:
format slot 0 of player with iron_ingot named "Iron_Ingot" to close then run [CheckPlayerUUID]
{slot1} = Iron_Ingot
command /buy player:
open chest with 5 rows named "&5Store" to player
format slot 0 of player with {slot0} to close then run [CheckPlayerUUID]
format slot 1 of player with {slot1} to close then run [CheckPlayerUUID]
CheckPlayerUUID