Skript: Internal error while trying to execute this command.

Created on 24 Jul 2020  路  10Comments  路  Source: SkriptLang/Skript

Description

I tried to make a /sell command and I got the error on multiple servers including my localhost test server and a Minehut server. I got the error on both servers, and I tried disabling my addons and still didn't work.

Steps to Reproduce

https://pastebin.com/e5DVvhjP (Code)

Expected Behavior

I wanted it to sell all the ores in the player's inventory by setting variables to the amount of that item in the player's inventory. Then, it would add them all together and add them to the temp. variable {_made} so I can send how much they made and then add that temp. variable to {m::%player%} (their balance's variable)

Errors / Screenshots

https://prnt.sc/tniv8x

Console: https://gist.github.com/oHeckGage/9132dda272a506d5e410005e3172fed8

Server Information

I've used a test server and Minehut:

MH: 1.16 TS: 1.16
MH Skript Version: 2.4.1MH (Idrk if that's the "real" version) TS Skript Version: 2.5-alpha6(rev1) and 2.4.1
(2.4.1 is the latest stable version)

Additional Context

bug completed low

Most helpful comment

Oh sure

All 10 comments

Duplicate of #2752

err wait, I was thinking something wrong here.

Please provide test results from our fork of Skript, not another persons fork.

Dunno what you mean, I got Skript.jar from github.com/SkriptLang/Skript/releases I think, am I supposed to download it from somewhere else?

He meant if you could send the error report that you get using THIS fork, instead of Minehut鈥檚.

Oh sure

Thanks! Your code should error, but for some reason it isn鈥檛. I鈥檓 assuming you鈥檙e trying to find the total amount of those materials, so you should add them together instead of putting them in a list.

e.g. set {_made} to {_iron} + {_gold} + ...

I believe this is what you are trying to do 馃檪

We will keep this issue open for now though since it is technically a bug

Yes it is what I wanted, I will see if that fixes it and see if there are errors!

Thanks! It works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Coolfire02 picture Coolfire02  路  3Comments

Misio12320 picture Misio12320  路  3Comments

Eryk1983S picture Eryk1983S  路  3Comments

DeagoTheDoggo picture DeagoTheDoggo  路  3Comments

Anoniempje1234 picture Anoniempje1234  路  3Comments