Can't compare 'balance of player' with an integer

  • Welcome to skUnity!

    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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

MrToxiLex

New Member
Jan 13, 2024
9
1
3
So my skript version is 2.2 dev 36

Minecraft server version is 1.8.8

And this is the important code:
Code:
balance of player is greater than 10000000:

And the error message goes like this:
Code:
Can't compare 'balance of player' with an integer (balance.sk) line 157: balance of player is greater than 10000000:')

Another note to take is that this is super important that it works with the plugin Vault (so not a variable since vault probably can't detect that i think)
 

Attachments

  • image_2024-07-30_084450536.png
    image_2024-07-30_084450536.png
    12.3 KB · Views: 188
  • image_2024-07-30_084511694.png
    image_2024-07-30_084511694.png
    1.2 KB · Views: 188
Hm, then might be a bug with you using that old of a version. since that works for me when I am using the latest version.
 
Well idk what to tell ya. Don't use older versions without expecting bugs, you can always use skript mirror (if that is even supported with 1.8) and use the vaultapi to get the balances from the api directly.
 
Well idk what to tell ya. Don't use older versions without expecting bugs, you can always use skript mirror (if that is even supported with 1.8) and use the vaultapi to get the balances from the api directly.
hey I'm sorry to bother you but i don't know how I'm supposed to be using skript mirror? could you help me.
 
I don't exactly know skript-mirror, I just know bits of skript-reflect which is a fork of skript-mirror. Essentially these addons implement java stuff in Skript so you can import classes and use java apis ect. Ill try my best to help you though, just send what u need help with.
 
I don't exactly know skript-mirror, I just know bits of skript-reflect which is a fork of skript-mirror. Essentially these addons implement java stuff in Skript so you can import classes and use java apis ect. Ill try my best to help you though, just send what u need help with.
I'd like for it to every second update {money::%player%} to whatever the Vault currency is currently at. do you think this could be done with skript mirror?
 
Yes, it is possible but that would be a bad way of doing that. A alternative of that is you can make a custom effect using skript-mirror and this effect will return the balance using the vault api to get the balance.
 
Yes, it is possible but that would be a bad way of doing that. A alternative of that is you can make a custom effect using skript-mirror and this effect will return the balance using the vault api to get the balance.
Okay but how would one do the "bad way" (Since i don't really care about performance on a 128 gigabyte server)

EDIT: Also if you do know how please also do the second option since idk a thing abt java