pipepaster.blogg.se

How to use joytokey minecraft config
How to use joytokey minecraft config










how to use joytokey minecraft config

This is essentially all you need to create a quick configuration file, but remember to call it in your onEnable() method to make sure that you have a configuration ready before anything else happens. (If that folder doesn't exist it will be created) It will not overwrite an existing config file. saveDefaultConfig ( ) saveDefaultConfig() will write the config.yml file from your plugin's jar file to the plugin's data folder. Using Default Configuration Files ( top)The creation of the configuration file: You can use this for storing information such as player balances, nicknames, and all sorts of data that you want to keep even after the server restarts. This is because files are no longer stored in virtual memory, but rather, on your actual storage disk. Files are a way of saving data in a form that won't get deleted after your program is terminated. In other words, just as easily as they were created, they are also destroyed. This is because objects such as those are stored in virtual memory. So why use configuration files? The reason for this is that when the server is closed or restarts, it recreates everything and all the data you stored would have been lost. A lot of the time, you can store this data in an object such as a HashMap or an ArrayList. What Configuration Files Are For ( top)As you develop, you will come across many instances where you will have to store data.












How to use joytokey minecraft config