Hello! I am a java developer, I want to use mysql but I have no idea how. No tutorials helped, heres my idea for a plugin I can use. Plugin name: MyStorage Commands (Can be used from console): /mystorage <add/remove> <amount> <player> <catagory> (Add / removes an amount from a value in mysql, if you try to add to a new catagory in creates one) Methods: (This is a method I want to hook in to, just tell me what it is) Create a class called MySQL & make a method called GetData This GetData class will have 2 inputs, Player, & Catagory This will return with the players value in that catagory. IF YOU WILL MAKE THIS, PLEASE USE UUIDS & NOT PLAYER NAMES, THANKS! Example (This is how I want to use the method): Mystorage.MySQL.GetData(p, "bedwars"); I highly doubt anyone will make this, but I really hope someone does! Thank you!!!!
@Supergrupgr Why should this be in MySQL? And have you tried this? https://bukkit.org/threads/using-mysql-in-your-plugins.132309/
Yep, didn't work, and I need MySQL for getting data across different bukkit servers Edit: Maybe if I understand it more I can make this myself, I don't think I can anytime soon
There are many MANY totrials on how to use JDBC, if your already a developer you should learn this yourself.... Its not that hard. I would also recommend using MongoDB instead of MySQL as its much more flexible
Plus even if you were to get the plugin you still have to have basic knowledge of MySQL. Ex. in the config you need to be able to add the connection, the database name, table name, etc.