#on join crashes my server

1 messages · Page 1 of 1 (latest)

steep vector
#

hello, i am making a skript and i am using the line "on join".
for some reason this is causing my server to crash when a player joins.. i added a simple broadcast statement in there and it still crashes

  broadcast "crazy"

I was using the most updated skript and skbee but i downgraded skript to see if it changes and then downgraded skbee but neither fixed it.. only fixes when i remove the on join:

and no errors

lunar tendon
steep vector
#

u want the crash log?

#

thats one of them

#

and i also get this one soemtimes

#
[22:35:23] [ServerMain/ERROR]: Failed to start the minecraft server
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
    at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:?]
    at sun.nio.ch.FileDispatcherImpl.write(Unknown Source) ~[?:?]
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) ~[?:?]
    at sun.nio.ch.IOUtil.write(Unknown Source) ~[?:?]
    at sun.nio.ch.IOUtil.write(Unknown Source) ~[?:?]
    at sun.nio.ch.FileChannelImpl.write(Unknown Source) ~[?:?]
    at net.minecraft.util.DirectoryLock.create(DirectoryLock.java:26) ~[?:?]
    at net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess.<init>(LevelStorageSource.java:512) ~[?:?]
    at net.minecraft.world.level.storage.LevelStorageSource.validateAndCreateAccess(LevelStorageSource.java:425) ~[?:?]
    at net.minecraft.server.Main.main(Main.java:211) ~[paper-1.20.1.jar:git-Paper-196]
    at org.bukkit.craftbukkit.Main.main(Main.java:324) ~[paper-1.20.1.jar:git-Paper-196]
    at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?]
    at java.lang.Thread.run(Unknown Source) ~[?:?]
lunar tendon
# steep vector

“Stopping the server” usually means that smth did smth similar to /stop

lunar tendon
#

like the ‘stop server’ effect in skript

steep vector
lunar tendon
steep vector
#

any other server hosts for free

#

other then minehut

lunar tendon
steep vector
lunar tendon
#

well

#

ur supposed to update ur shit first before coming here

#

so

steep vector
#

ive had btoh updated

#

and it stiull happened

lunar tendon
#

update skript and akbee

steep vector
#

which I mentioned before

steep vector
lunar tendon
#

idk

steep vector
lunar tendon
steep vector
#

is it a bug

lunar tendon
#

maybe

steep vector
#

should i bug report

lunar tendon
#

send the output of /sk info

steep vector
#

i updated by the way

#

to the newer ones

lunar tendon
steep vector
#

which servers can i do that ion

#

this is pretty mcuh the only one im in

lunar tendon
steep vector
#

ty

#

@lunar tendon

#

i just created a fresh skript and did an on join:

#

it worked without crashing

#

on the same server

#

but im not getting errors?

lunar tendon
#

Idk

gaunt crest
# steep vector

the log file you posted shows you joining the server and running commands after you joined, it doesn't show any crash whatsoever
do you have any other scripts on the server that could be crashing it? like look through literally every single skript file and send us what you think could be an issue

gaunt crest
# steep vector it worked without crashing

yeah at this point im 99% certain this is an issue with your other scripts
disable all your skript files one by one until you find which one is crashing the server (prefix the file with - to disable them)

zinc canopy
#

@steep vector I recommend you search with the filter words "while" or "join" and check if there're any delays missing or anything else that might cause this to happen

steep vector
#

And it started crashing

#

And I removed it and it stopped

#

But then with the exact same server I created a new skript with on join

#

And it worked

#

So something is my skript is ruining the on join

#

@zinc canopy

light whale
#

is there a while loop after the on join evebt