Skript

Skript

743k Downloads

Exception & unexpected errors with Vault economy & Skript

Boxeyy opened this issue ยท 3 comments

commented

Skript/Server Version

[Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[Skript] Server Version: git-Pufferfish-51 (MC: 1.20.4)
[Skript] Skript Version: 2.8.7 (skriptlang-github)
[Skript] Installed Skript Addons: 
[Skript]  - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
[Skript]  - PoaSK v3.4.5
[Skript]  - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[Skript]  - SkQuery v4.1.10
[Skript]  - SkBee v3.5.3 (https://github.com/ShaneBeee/SkBee)
[Skript] Installed dependencies: 
[Skript]  - Vault v1.7.3-b131
[16:40:32] [Render thread/INFO]: [System] [CHAT] [Skript]  - WorldGuard v7.0.9+5934e49

Bug Description

When doing calculations with a vault economy an exception is thrown.
Skript does not understand adding to money.

Expected Behavior

The calculation is supposed to return an amount of money.

Steps to Reproduce

Example 1 - Exception (in function), rewrote into a snippet.

command /test:
    trigger:
        testtest(player)

function testtest(p:player):
    set {_amount} to 1
    {_p}'s money - {_amount} < 0:
        send "You do not have the money" to {_p}

Full code that I wanted to make: https://pastebin.com/DFqBpKYn

Example 2 - Weird error

command /test:
    trigger:
        if player's money + 1 > 100:
            send "You have 101 or more!"

Using plugin LightEconomy & Vault, this has worked before on my other servers and only recently is throwing these errors.
Lighteconomy config: https://pastebin.com/892EmGuM

Errors or Screenshots

Error example 1
https://pastebin.com/CMyGvVuj

Error example 2
image

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

Removed SkQuery, same thing still happens

Also it isn't a problem regarding the >=, because this normal expression is also broken:
image

commented

Can confirm,

command /test:
    trigger:
        if (player's money + 1) > 100:
            send "You have 101 or more!"

causes

[17:52:04 INFO]: Line 3: (test.sk)
[17:52:04 INFO]:     Can't understand this condition: '(player's money + 1) > 100'
[17:52:04 INFO]:     Line: if (player's money + 1) > 100:
[17:52:04 INFO]:
[17:52:04 INFO]: [Skript] Encountered 1 error while reloading test.sk! (17ms)

with the GitHub Skript 2.8.7 release, Vault, Essentials, and no addons. Removing the +1 seems to work fine.

commented

Try (player's money + 1) > 100. Looks like it's conflicting with whatever addon you have that adds a less than/greater than condition

EDIT: seems to be SkQuery