Best way of sending data to a database

Discussion in 'Plugin Development' started by monkeymanboy, Jul 30, 2014.

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

    monkeymanboy

    Is there anyway that would allow it to be the same database for everyone who uses the plugin no config to choose there own and they wouldn't be able to see the password or fill it up with random stuff by decompiling the plugin.

    EDIT: Right now I am not using any database I'm just wondering what would be the best for this
     
  2. Offline

    mythbusterma

    monkeymanboy

    By setting up permissions on your MySQL server you can restrict things that different users can do, of course you're still going to have to have the password in the plugin though.
     
  3. Offline

    WeeSkilz

    monkeymanboy

    What I have just done in a plugin is have it query a PHP file on my webserver which will then input/fetch values from a database then parse them into JSON so that the plugin can retrieve the information (albeit with a library like gson) to use in game. It's a bit of a long winded approach but it's really the only way if you don't want credentials stored in the plugin.
     
  4. Offline

    1Rogue

    Use a network controller that would take input from everything (such as php/ruby), and then have that service commit to the database.
     
Thread Status:
Not open for further replies.

Share This Page