MySQL data to variable

Discussion in 'Plugin Development' started by MrGazdag, Oct 22, 2017.

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

    MrGazdag

    Hey, I am trying to achieve something, but I don't know how to approach it.
    So, my goal here is to get a player variable, then use an Async task, to get the player's data from a MySQL server. I want to use the player's name, so i can get the stats of that player, then send the stats back, so the rest of the code can use it.
    I am still a beginner, I learn fast though.
     
  2. Offline

    Zombie_Striker

    @MrGazdag
    Well, how much do you know already? Do you know how to use SQL? Do you know how to set up the basics for a plugin?

    Also, don't use the player's name for storing data. Player's names can change, and they may lose their data if they do if you use that system. Instead, use UUIDs, as they cannot change.
     
  3. Offline

    MrGazdag

    Umm, i know how to use a SQL. I have set up a server already, then set up a database, and a table. About the player name....... I think i might want to store the player name, because it will probably be a cracked server. Also, i have a column named UUID.
     
  4. Online

    timtower Administrator Administrator Moderator

    Locked
    Offline mode is not supported by Bukkit
     
Thread Status:
Not open for further replies.

Share This Page