#First time making a script

10 messages · Page 1 of 1 (latest)

tough lake
#

I tried to make a script that limits player playtime. It is supposed to increase the maximum by 5 (command adjustable) hours per 24 hours. I want players to be able to save up playtime upto a certain maximum.

I have tried making a script by copying parts from a similar example script, but it now gives me an error.

My script is probably very bad can someone help me fix it?

earnest radishBOT
#

Paste version of server.txt, ServerPlaytimeBan.js from @tough lake

steady novaBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

fossil lynx
#

youre on 1.18, using 1.19 events

tough lake
#

oh

fossil lynx
#

you can find the equivalent of the 1.18 in the list of events

earnest radishBOT
#

This is a list of all the events. Choose your version.

fossil lynx
#

following the format of onEvent('event_here', event => {})

tough lake
#

thx, will try that

fossil lynx