Hello, I try to instantiate a class but I have a strange error. My class: Code: public class test { private Plugin plugin; public test(Plugin plugin) { this.plugin = plugin; } } In my main: Code: Test test = new test(this); Error: I don't understand :/ Thank you in advance !
Your class, test, takes the parameter (plugin) Now your main class is not Plugin. You must change Plugin plugin to YourMainClass plugin and private Plugin plugin; -> private MainClassHere plugin;