Save Inventory

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

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

    Aragone

  2. Offline

    KarimAKL

    @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

    Aragone

    @KarimAKL
    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 : https://pastebin.com/raw/QyBqaqh5
     
    Last edited: Aug 14, 2019
Thread Status:
Not open for further replies.

Share This Page