Hey there. Is it possible to bind java code into a skript?
Like I have a CoinAPI and I want to test if a player has enough coins.
The API is
CoinsAPI.hasEnoughCoins(Username, Coins);
CoinsAPI.removeCoins(Username, Coins);
I wanted to make a skript where you can buy things with these coins
If i had a skript variable it would work like this
Is this possible?
Like I have a CoinAPI and I want to test if a player has enough coins.
The API is
CoinsAPI.hasEnoughCoins(Username, Coins);
CoinsAPI.removeCoins(Username, Coins);
I wanted to make a skript where you can buy things with these coins
If i had a skript variable it would work like this
Code:
command /buytest:
trigger:
if {coins.%uuid of player%} is more or equal to 100:
remove 100 from {coins.%uuid of player%}
send "You have bought Test for 100 Coins"
#//do stuff here
else:
send "You don't have enough coins to buy that."
Is this possible?