Error while reloading script with command argument that doesn't exists
TheGallium opened this issue ยท 6 comments
Skript/Server Version
[19:35:37 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[19:35:37 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[19:35:37 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[19:35:37 INFO]: [Skript] Server Version: git-Paper-484 (MC: 1.20.4)
[19:35:37 INFO]: [Skript] Skript Version: 2.8.4 (skriptlang-github)
[19:35:37 INFO]: [Skript] Installed Skript Addons: None
[19:35:37 INFO]: [Skript] Installed dependencies:
[19:35:37 INFO]: [Skript] - Vault v1.7.3-b131
[19:35:37 INFO]: [Skript] - WorldGuard v7.0.8+33cdb4a
Bug Description
This bug happens when, you reload a script, which uses a command argument in a string (ex: "hello %arg-1%"
) that doesn't exists.
It says in chat [Skript] Reloading test.sk...
But it never finishes, if you reload it a second time, it will put the error linked below in console.
It will do this every time you reload this file, even if you modified it afterwards.
This might happen in other senarios beacause other of my scripts broke, I will continue to investigate this issue
Expected Behavior
It should give an error saying that the argument doesn't exists in this command
Steps to Reproduce
Enter this in a script: (mine is test.sk
)
command /test:
trigger:
send "%arg-1%"
And reload it with /sk reload test.sk
.
Enter the command a second time, and you will see the error.
Errors or Screenshots
I get this error in the console: link
Agreement
- I have read the guidelines above and affirm I am following them with this report.
[14:50:31 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[14:50:31 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[14:50:31 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[14:50:31 INFO]: [Skript] Server Version: git-Paper-485 (MC: 1.20.4)
[14:50:31 INFO]: [Skript] Skript Version: 2.8.4 (skriptlang-github)
[14:50:31 INFO]: [Skript] Installed Skript Addons:
[14:50:31 INFO]: [Skript] - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[14:50:31 INFO]: [Skript] - skript-yaml v1.5
[14:50:31 INFO]: [Skript] - skript-particle v1.2.0 (https://github.com/sovdeeth/skript-particle)
[14:50:31 INFO]: [Skript] - skript-reflect v2.4-dev2 (https://github.com/SkriptLang/skript-reflect)
[14:50:31 INFO]: [Skript] - SkBee v3.4.2 (https://github.com/ShaneBeee/SkBee)
[14:50:31 INFO]: [Skript] Installed dependencies: None
skript-reflect is a custom build prior to 2.4 official release but all the same stuff
Did you use /reload
or a plugman-like plugin to reload your server/skript plugin at any point?
I might have used /reload
a very long time ago, but there is no chance it causes problems now, the server restarted normally since
Strange, I cannot replicate either. Can you send the exact script file that causes this issue?