Oh, my bad thank you!
This is super late but I'm trying out this project again and I get an error on the blockType.getData() == (byte) 2 taht saysIncompatible operand...
When I do thisMaterial fern = Material.LONG_GRASS, (short) 2; I get this Type mismatch: cannot convert from short to Material
Thanks but how could I apply this unto my code? I see that there are GrassSpecies but I'm not sure how to integrate it into my code, does anyone...
I know it's Material.LONG_GRASS, 2 but it doesn't let you put the 2 as a damage value so I'm not sure how to get it because otherwise you just get...
I just recently got back into coding and I'm stuck trying to check if a player breaks a fern or a large fern block. I have the basics but I can't...
iiHeroo It's okay man, I fixed it. But I forget to mark as Solved lol. Sorry about that!
Haha! I fixed using getter and setters. I got help from this post: https://forums.bukkit.org/threads/access-config-in-static-method.157941/
coasterman10 Not sure what you mean? What else needs to be done? This works all the time, but just not for this.
coasterman10 public void onEnable() { main = this; } public void onDisable() { main = null; }
AoH_Ruthless So how can I fix this?
I can't even do that because in Eclipse it gives me an error under the 'main' part of 'main.getConfig(...)' that says "Cannot make a static...
@BillyBobJoe169 I have this already Main main; public Event(Main instance) { this.main = instance; } And I'm using...
Oh I see. coasterman10 and Wolfey it is null. It was null because I was trying to do some static stuff with it, which messed it up. But how can I...
Wolfey String world = main.getConfig().getString("RedTeam.world");
Separate names with a comma.