Minigames Coins, where storage data?

Discussion in 'Plugin Development' started by laruss, Feb 16, 2017.

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

    laruss

    I want to make coins manager for minigames, one game = other coins like in hypixel
    where i should storage data?
    in redis?
    like:
    gameName: UUID->COINS
    gameName2:UUID->COINS
    or mysql
    like:
    ID|uuid|name|oneGameCoins|twoGameCoins
    or
    ID|uuid|name|jsonSerializedCoins
    what is the best way?
    of course when i choose mysql i will make cache or somethink like this :)
     
  2. Alternatively you could use a YAML file, specified as a config, it has methods for storing sections for each player, and a lot more.
     
  3. Offline

    johnny boy

    Yep, use a configuration file, and make it custom named in case if you want more then 1 currency and because it looks better.
     
  4. Offline

    Tecno_Wizard

    @TheEnderman, depending on the amount of players, that may end up being one big YAML file to store that much data.


    @laruss I created a flat file kinda database recently which shares data across all my plugins in a single file for each player, and that has been working really well.
     
Thread Status:
Not open for further replies.

Share This Page