Server keeps crashing...Looks like it's Skript

  • 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!

Status
Not open for further replies.

Rosathorn

Member
Oct 29, 2019
13
0
1
Skript Version (do not put latest): Skript 2.4
Skript Author: Bensku
Minecraft Version: 1.15.2
Addons: Skrayfall,SkQuery,Skellett,TuSKe



https://pastebin.com/SfgyvkJP

No crash report but that's what popped up in console.

Additionally, my server is having problems that it can't write variables to database 'default' fast enough, and I eventually tracked it down to this one line of code:

https://pastebin.com/wTNEzebK

I have to remove a good chunk for it to stop showing that error, too, but a lot of stuff in there is critically necessary and I've tried splitting it up, putting it in another file, etc, but it's just not enough, if any piece of that code comes in the form of loops we're back to the error. Any solutions?
 
Last edited:
It's just a guess, but I don't know if it's right.

This could be a reason for the crash:
Code:
loop all blocks in radius 10 of loop-player:

Testing:
upload_2020-5-26_0-48-12.png


So that means you're looping 4193 blocks for every player online. If there are 10 players online it would be 41930 blocks.

I don't know if that's the reason for the crash, but it could be.
 
Status
Not open for further replies.