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 comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Before making a new thread, please be sure you have used all the options available to you. By simply searching "file" in the docs, you will find several solutions.I don't know if you can but my friend told me it's possible, I'd have no idea where to start but how would it work?
I didn't think about using "file" as it, thanks I'll go look now. But for the record I did search up .txt, text document, txt ect.Before making a new thread, please be sure you have used all the options available to you. By simply searching "file" in the docs, you will find several solutions.
You can easily write text to ANY type of file. However, for saving data, it's much better to use YML or a list variable ("{yourvariable::whatever}").I didn't think about using "file" as it, thanks I'll go look now. But for the record I did search up .txt, text document, txt ect.
you're completely wrong there, the YML files aren't for saving data, they are for configuration files, if you want to save data use JSON, CSV or as the OP wants, a TXT file.for saving data, it's much better to use YML
on join:
if {iplogs::*} does not contain "%player% - %player's IP%":
add "%player% - %player's IP%" to {iplogs::*}
write "%player%'s IP is %player's IP%." to "plugins/iplogs.txt"
A lot of plugins use YML to save all sorts of data. It's the most friendly way (apart from variables) of saving things to a file which is why i suggested it.you're completely wrong there, the YML files aren't for saving data, they are for configuration files, if you want to save data use JSON, CSV or as the OP wants, a TXT file.
For a simple little list I'm using to store IPs and draw them for IP banning and such it's the most effective and simplistic way I can go using a .txt file, but thanks for the suggestion.A lot of plugins use YML to save all sorts of data. It's the most friendly way (apart from variables) of saving things to a file which is why i suggested it.
write "%player%'s IP is %player's ip%." at line (file "plugins/iplogs.txt"'s line count + 1) to file "plugins/iplogs.txt"
yeah, it's friendly but but it's more slow when the file is more bigger, that's why I don't recommend YML.A lot of plugins use YML to save all sorts of data. It's the most friendly way (apart from variables) of saving things to a file which is why i suggested it.
To have a saved copy in the files? I already have it in a variable.Why are you using a txt file when you can just use a variable?
Set {IPs::%player%} to player's ip
Thank you, I'll try it now.To the OP's question, using skUtilities (also, why you save it in a file and in a variable at the same time):
code_language.skript:write "%player%'s IP is %player's ip%." at line (file "plugins/iplogs.txt"'s line count + 1) to file "plugins/iplogs.txt"
yeah, it's friendly but but it's more slow when the file is more bigger, that's why I don't recommend YML.
Happen to have a DL link for SkUtilities 1.8? All I can find is 1.9 and SkUnity's link isn't currently working.To the OP's question, using skUtilities (also, why you save it in a file and in a variable at the same time):
Edit: Found it, just had to use my brain and search the new forums.. lolcode_language.skript:write "%player%'s IP is %player's ip%." at line (file "plugins/iplogs.txt"'s line count + 1) to file "plugins/iplogs.txt"
yeah, it's friendly but but it's more slow when the file is more bigger, that's why I don't recommend YML.
Edit: used my brain a bit and found it, lol. Sorry to bother.To have a saved copy in the files? I already have it in a variable.
Thank you, I'll try it now.
[doublepost=1485635714,1485635247][/doublepost]
Happen to have a DL link for SkUtilities 1.8? All I can find is 1.9 and SkUnity's link isn't currently working.