Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Thank you! but is there a way to make it like when you do the command, it takes away 1000 dollarsYou can use:
enchant the tool with "sharpness %level of efficiency of the tool + 1%" parsed as enchantment type
How about if they don't have enough balance?"remove 1000 from player's balance" i Think im not sure![]()
It will go negativeHow about if they don't have enough balance?
it says "player's balance isn't a variable etcIt will go negative
Make a check:
if player’s balance is higher or equal to <amount>:
[doublepost=1586359789,1586359734][/doublepost]Mark this thread as solved please
Do you have vault and economy plugin installed?it says "player's balance isn't a variable etc
yesDo you have vault and economy plugin installed?
This is what i have idkDo you have vault and economy plugin installed?
command /efficiency [<text>]:
permission: efficiency.enchant
permission message: [&c&l&!&f] You don't have permission
trigger:
if arg 1 is not set:
if {wait.%player%} does not exist:
set {wait.%player%} to false
if {wait.%player%} is true:
wait 3 ticks
enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
if player's balance is greater than 9999:
execute console command "eco take %player% 10000"
message "&7Efficiency &chas now been applied on your Pickaxe!"
else:
message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
Try this: Some of your indenting was offyes
[doublepost=1586452240,1586451596][/doublepost]
This is what i have idk
I tried to do the remove 1000 from players balanceCode:command /efficiency [<text>]: permission: efficiency.enchant permission message: [&c&l&!&f] You don't have permission trigger: if arg 1 is not set: if {wait.%player%} does not exist: set {wait.%player%} to false if {wait.%player%} is true: wait 3 ticks enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type if player's balance is greater than 9999: execute console command "eco take %player% 10000" message "&7Efficiency &chas now been applied on your Pickaxe!" else: message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
command /efficiency [<text>]:
permission: efficiency.enchant
permission message: [&c&l&!&f] You don't have permission
trigger:
if arg 1 is not set:
if {wait.%player%} does not exist:
set {wait.%player%} to false
if {wait.%player%} is true:
wait 3 ticks
enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
if player's balance is greater than 9999:
execute console command "eco take %player% 10000"
message "&7Efficiency &chas now been applied on your Pickaxe!"
else:
message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
oh okay thank youTry this: Some of your indenting was off
Code:command /efficiency [<text>]: permission: efficiency.enchant permission message: [&c&l&!&f] You don't have permission trigger: if arg 1 is not set: if {wait.%player%} does not exist: set {wait.%player%} to false if {wait.%player%} is true: wait 3 ticks enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type if player's balance is greater than 9999: execute console command "eco take %player% 10000" message "&7Efficiency &chas now been applied on your Pickaxe!" else: message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
Can you help please, it says can't compare 'players balance' with an integerTry this: Some of your indenting was off
Code:command /efficiency [<text>]: permission: efficiency.enchant permission message: [&c&l&!&f] You don't have permission trigger: if arg 1 is not set: if {wait.%player%} does not exist: set {wait.%player%} to false if {wait.%player%} is true: wait 3 ticks enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type if player's balance is greater than 9999: execute console command "eco take %player% 10000" message "&7Efficiency &chas now been applied on your Pickaxe!" else: message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
Its working just fine for me. Are you sure you have a economy plugin, and vault installed? Can you also send me a list of your plugins?oh okay thank you
[doublepost=1586483470,1586479581][/doublepost]
Can you help please, it says can't compare 'players balance' with an integer