Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Read and write MySQL data in a database?

Comments in 'Plugin Development' started by myst02, Oct 19, 2015.

  1. myst02
    Offline

    myst02 Active Member

    Joined:
    Mar 23, 2015
    Posts:
    97
    Minecraft User:
    myst02
    Hi!

    I want to make a plugin which reads the content of the banned-players.txt and writes it into a MySQL database. I also want to read from the database and write its content in the banned-players.txt.

    Is this even possible?
    Thanks!
  2. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    Yes, it is. You should have a look at PlayerStats plugin, for understand how write data to database and how read data from it.

Share This Page

Advertisement