Save Inventory

Discussion in 'Plugin Development' started by Aragone, Aug 7, 2019.

  1. Offline


  2. Offline


    @Aragone 'connection' is null, you are creating a new instance of SqlDatabase so you have to use your connection() method first.
    I haven't tried much MySQL but i think that you should probably make SqlDatabase a singleton.
  3. Offline


    It runs but do you think is it possible to connect him directly is the main class (in onEnable() section), because there is a connection here every time I perform the command.

    My main class :
    Last edited: Aug 14, 2019

Share This Page