#guys I can use a variable in another
1 messages · Page 1 of 1 (latest)
Show code
If you need to use from another class, declare outside of onEnable() and initialize it inside
thats not working when i want to use it
boolean drop;
public void onEnable() {
this.drop = true;
}
Well, depends
Do you pass an instance of main to the class you want to use it from?
new OtherClass(this)
yes
Then yes
you just solved a lot of my problems. thanks bro