command /sell: trigger: delete {shop::tempdata::wheatAmount::%uuid of player%} delete {shop::tempdata::carrotAmount::%uuid of player%} delete {shop::tempdata::potatoAmount::%uuid of player%} delete {shop::tempdata::netherwartAmount::%uuid of player%} delete {shop::tempdata::melonSliceAmount::%uuid of player%} delete {shop::tempdata::pumpkinAmount::%uuid of player%} delete {shop::tempdata::sugarCaneAmount::%uuid of player%} delete {shop::tempdata::cactusAmount::%uuid of player%} delete {shop::tempdata::sellList::%uuid of player%::*} if inventory of player does not contain wheat or carrot or potato or nether wart or melon slice or pumpkin or sugar cane or cactus: send "{@prefix} You don't have any items to sell!" to player stop if inventory of player contains wheat: set {shop::tempdata::wheatAmount::%uuid of player%} to amount of wheat in inventory of player remove {shop::tempdata::wheatAmount::%uuid of player%} of wheat from inventory of player add "&4x%{shop::tempdata::wheatAmount::%uuid of player%}% &7of &4wheat &7for &4$&4%{shop::tempdata::wheatAmount::%uuid of player%} * 1.75%" to {shop::tempdata::sellList::%uuid of player%::*} if inventory of player contains carrot: set {shop::tempdata::carrotAmount::%uuid of player%} to amount of carrot in inventory of player remove {shop::tempdata::carrotAmount::%uuid of player%} of carrot from inventory of player add "&4x%{shop::tempdata::carrotAmount::%uuid of player%}% &7of &4carrot &7for &4$&4%{shop::tempdata::carrotAmount::%uuid of player%} * 2%" to {shop::tempdata::sellList::%uuid of player%::*} if inventory of player contains potato: set {shop::tempdata::potatoAmount::%uuid of player%} to amount of potato in inventory of player remove {shop::tempdata::potatoAmount::%uuid of player%} of potato from inventory of player add "&4x%{shop::tempdata::potatoAmount::%uuid of player%}% &7of &4inventory &7for &4$&4%{shop::tempdata::potatoAmount::%uuid of player%} * 3%" to {shop::tempdata::sellList::%uuid of player%::*} if inventory of player contains nether wart: set {shop::tempdata::netherwartAmount::%uuid of player%} to amount of nether wart in inventory of player remove {shop::tempdata::netherwartAmount::%uuid of player%} of nether wart from inventory of player add "&4x%{shop::tempdata::netherwartAmount::%uuid of player%}% &7of &4nether wart &7for &4$&4%{shop::tempdata::netherwartAmount::%uuid of player%} * 4.5%" to {shop::tempdata::sellList::%uuid of player%::*} if inventory of player contains melon slice: set {shop::tempdata::melonSliceAmount::%uuid of player%} to amount of melon slice in inventory of player remove {shop::tempdata::melonSliceAmount::%uuid of player%} of melon slice from inventory of player add "&4x%{shop::tempdata::melonSliceAmount::%uuid of player%}% &7of &4melon slice &7for &4$&4%{shop::tempdata::melonSliceAmount::%uuid of player%} * 0.20%" to {shop::tempdata::sellList::%uuid of player%::*} if inventory of player contains pumpkin: set {shop::tempdata::pumpkinAmount::%uuid of player%} to amount of pumpkin in inventory of player remove {shop::tempdata::pumpkinAmount::%uuid of player%} of pumpkin from inventory of player add "&4x%{shop::tempdata::pumpkinAmount::%uuid of player%}% &7of &4pumpkin &7for &4$&4%{shop::tempdata::pumpkinAmount::%uuid of player%} * 1%" to {shop::tempdata::sellList::%uuid of player%::*} if inventory of player contains sugar cane: set {shop::tempdata::sugarCaneAmount::%uuid of player%} to amount of sugar cane in inventory of player remove {shop::tempdata::sugarCaneAmount::%uuid of player%} of sugar cane from inventory of player add "&4x%{shop::tempdata::sugarCaneAmount::%uuid of player%}% &7of &4sugar cane &7for &4$&4%{shop::tempdata::sugarCaneAmount::%uuid of player%} * 1.3%" to {shop::tempdata::sellList::%uuid of player%::*} if inventory of player contains cactus: set {shop::tempdata::cactusAmount::%uuid of player%} to amount of cactus in inventory of player remove {shop::tempdata::cactusAmount::%uuid of player%} of cactus from inventory of player add "&4x%{shop::tempdata::cactusAmount::%uuid of player%}% &7of &4cactus &7for &4$&4%{shop::tempdata::cactusAmount::%uuid of player%} * 1.4%" to {shop::tempdata::sellList::%uuid of player%::*} set {_total} to ({shop::tempdata::wheatAmount::%uuid of player%} * 1.75) + ({shop::tempdata::carrotAmount::%uuid of player%} * 2) + ({shop::tempdata::potatoAmount::%uuid of player%} * 3) + ({shop::tempdata::netherwartAmount::%uuid of player%} * 4.5) + ({shop::tempdata::melonSliceAmount::%uuid of player%} * 0.2) + ({shop::tempdata::pumpkinAmount::%uuid of player%} * 1) + ({shop::tempdata::sugarCaneAmount::%uuid of player%} * 1.3) + ({shop::tempdata::cactusAmount::%uuid of player%} * 1.4) set {_multiplier} to getMultiplier(player) add ({boosters::localbooster::%uuid of player%::amount} - 1) to {_multiplier} if {boosters::localbooster::%uuid of player%::*} is set add ({boosters::globalbooster::amount} - 1) to {_multiplier} if {boosters::globalbooster::*} is set set {_finishedAmount} to {_total} * {_multiplier} addBalance(player, {_finishedAmount}) send "{@borders}" to player send "&4Sell: &c$&c%{_finishedAmount}%" to player send "&7 " to player loop {shop::tempdata::sellList::%uuid of player%::*}: send loop-value to player send "&7 " to player if {boosters::globalbooster::*} or {boosters::localbooster::%uuid of player%::*} is set send "&c(( GET A BOOSTER @ /BUY OR /GEMSHOP ))" to player if {boosters::globalbooster::*} and {boosters::localbooster::%uuid of player%::*} is not set send "&c(( MULTIPLIED BY YOUR LOCAL BOOSTER ))" to player if {boosters::localbooster::%uuid of player%::*} is set send "&c(( MULTIPLIED BY THE GLOBAL BOOSTER ))" to player if {boosters::globalbooster::*} is set send "{@borders}" to player