#I need help again

1 messages · Page 1 of 1 (latest)

umbral trench
#

Hey! Sorry if I'm interrupting, I have a short question about the help you gave me. So you said i should put the code

public class Example {
  
  private Main main;  
  public Example(Main instance) {
    main = instance;
  }
}```
in my example class and after a few other steps i can use `main.getDataManager().whateverMethodYouWantHere`
So i have two classes, which are  connected with my MySQL Stuff. I have the "MySQLMethods" and the "DataSourceProvider" Class. With the DataSourceprovider Class i connect my plugin with the Database and in the other Class i wanted to create methods which add values to my Database tables.
In which class should i put this code?
broken cairn
#

Name your thread to a more meaningful name next time

umbral verge
#

please name your threads better for people trying to help

broken cairn
#

Hehe imagine

umbral verge
#

ðŸ˜