#teach me sensei

1 messages · Page 1 of 1 (latest)

full kraken
#

can we continue this here?

simple hemlock
#

for education purpose i wont tell you how to code but i will help u know what u need

full kraken
#

ok ok

simple hemlock
#

u need to know to know how to read and write a file

#

have a google search for it

full kraken
#

alr

simple hemlock
#

when u are done u need to write a function to read the saving file

full kraken
#

so first I have to create a config file

#

and then with the help of read and write I have to save the config file?

simple hemlock
#

yeh kind of

#

here is the process

full kraken
#

but what about the version

#

I mean edition

simple hemlock
#

you run the give command
-> server: read the file and get the previous number (if it is nothing keep the number as 0)
-> add 1 to the number u read from file
-> add a lore for the item with that added number
-> save/write the number to the file
-> give player the item