Skript does not properly handle scripts in disabled folders. #6382
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Skript/Server Version
Bug Description
As discussed on discord, Skript struggles to identify scripts that are in disabled folders (starting with "-") as disabled unless the files themselves start with
-
. It also identifies folders that start with "-" as disabled files themselves.There's also strange behavior when attempting to enable/disable files in a disabled folder. I have not tested enough to pin down the exact behavior.
Expected Behavior
Skript should enable/disable exactly what it is told to. If I
/sk disable folder/
, it should name the folder-folder
and leave the files inside.If I try to enable a file in a disabled folder, it should error.
If I disable a script within a folder, only that script should be disabled.
This will change behavior, but I think it's a more consistent end result.
In addition, the reporting of disabled scripts needs to be more exact. Scripts without "-" in disabled folders should still be reported, and the folders themselves should not be reported as scripts.
Steps to Reproduce
Create a folder "-directory" in /scripts/.
Create "test.sk" within it.
Create "-test2.sk" within it.
Run
!send disabled scripts
You should see the following, notably lacking
test.sk
.Errors or Screenshots
No response
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: