This version fixes an issue with the /invest companies command, allowing the plugin to display all registered companies instead of only a few.
Fixes and Improvements:
Implemented a hotfix to ensure the /invest companies command displays all available companies. Before this update, the command would only display the first three companies.
The new version of BlockStreet is out! This version brings several improvements to code quality, stock generation algorithm, and data migration process.
New Features:
The stock price algorithm was reworked to generate more predictable results.
Created a migration system to allow old data to be migrated and work on the new plugin's version.
Fixes and Improvements:
Improved the plugin's help page.
Refactored and reorganized most of the code.
Reworked data storage to make it compatible with databases in the future.
Now you can use /invest delete [id] to delete a company without using the companies.yml file.
Independent companies file
The config.yml and companies.yml are now different files.
Leverage mechanism
With the new leverage mechanism, you can change the success rate of the investors. It can be set in config.yml.
Leverage should be a value between 1 and -1. If the value is positive, then the stocks will, more likely, valorize, and if the value is negative, then they will devalue.
The default value is 0. With the leverage at 0, the probabilities of stocks valorization or devaluation are the same.
Correction of bugs & code simplification.
Correction of minor bugs. Code cleanup and simplification.