I was wondering if there was a way to create a file inside a plugin. So you can store data in it. So like a normal .yml file but that inside the plugin so the user will not see this file.
@GijsCo Nope. You cannot edit files inside of jars. You can read them, but not write to them. Also, why would it have to be invisible to the player? What are you trying to hide in there? There is most likely a better way then that.
@Zombie_Striker Maybe when you save password for each player? It can also been that the player maybe use his normal mc password and that the owner that can't see.
Then you hash it, then nobody knows what it says without having spend hours and hours trying to crack it.
That is a option but if you close your server than you lose all your data or you save it in a file but the can read that.
Code: 85f899c7ad8f988c52703c031b53ff9e That is a hash, feel free to try and crack what it says. Hashing means encrypting without being able to decrypt by other means but brute force. I don't mind having a config full off those lines, do want to improve the hashing to a different method though, md5 is not good.
It was more to store a hashmap or something like that when you reload the plugin. But maybe there is an other way for that?? Because i just want to save a interger and a hashmap with players and integers. If there is no other way i will just create a yml file when you reload and put the hashmaps and integers in there. When the plugin will enable i will just delete that yml file! But if there is onother way. I would really approcatre it.
@GijsCo Integer is a regular set method. Hashmap will require a loop over the map for saving and one over all the keys in the config for loading.