MySQL Help

Discussion in 'Spigot Plugin Help' started by SrThex7, Jun 15, 2016.

  1. hello, I have a problem with mysql, when the plugin accesses the database, a delay occurs in the entire server , is there any way to fix it ? Thank you.
  2. MiniDigger


    that plugin is badly coded. remove it and try searching for an alternative.
  3. The plugin I am doing, but I want to know what time it is better to load the mysql, had put in "PlayerJoinEvent" but there is a delay while making connection. help is appreciated.

    sorry for my english.
  4. MiniDigger


    never do data base queries sync to the main thread.
  5. then as I can do to charge the statistics of a player ?
  6. MiniDigger


    if you mean 'change' just do it in a async bukkit runnable. Look into how the bukkit scheduler works if you don't know what to do with this information.
  7. okay, thanks for the help