#Causes Watchdog Terminate Errors and Suddenly Shuts down
1 messages · Page 1 of 1 (latest)
If nothing else, https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/watchdogterminatebeforeevent will prevent watchdog from kicking you out of the world
I think it may be the database causing the issue
No, it’s the moment I import any of my other scripts
Index works fine without any import from any of my other files
Does the game crash fully or just kick you out of the world
That’s not watchdog then, hmm
I can import database fine
None of the others?
But not battleprotection or any other one I actually made
Of course jaylys code is bullet proof and mine shatters….
Try removing & re-adding the functions one by one in battleprotection
Ok
Import just the empty file to start
What is it console.log or what I always forget?
Log for files, warn for in game ui
Ok
Ok so an empty battleprotection loaded and a dummy function called test imported successfully and logged when used
So I found the issue
Look at the top of battle protection where I’m importing GetPlayerByName
yep
Debug Result
There are 20 errors in this [code](#1151197405157535835 message).
Please read the attached file for the result.
Debug (Stable)
Wanted to see if the bot would debug all of them or if it was limited lol.