MySQL Value Storage

Discussion in 'Plugin Requests' started by Supergrupgr, May 7, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Supergrupgr

    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!!!!
     
  2. Online

    timtower Administrator Administrator Moderator

    Last edited: May 7, 2020
  3. Offline

    Supergrupgr

  4. Online

    timtower Administrator Administrator Moderator

    You didn't mention that in your request.
    My initial thought was to have it one way traffic.
     
  5. Offline

    catman2014_

    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
     
    Xp10d3 likes this.
  6. Offline

    Xp10d3

    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.
     
Thread Status:
Not open for further replies.

Share This Page