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");
BillyBobJoe168 No, it triggers after a command. It HAS to be that way. It will work that way, I just need to tweak on one of the errors. *Bump*...
BillyBobJoe168 What do you mean? I need it to be like that, but how can I fix the error?
Sorry, I took a snippet out of my code. The scheduler time was specified, lol
I have a scheduler that teleports a player to a location defined by the config: Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(main,...
agent6262 Hmm, than how could I get a player death from a wolf without using this? Ok, I fixed it using EntityDamageEvent ede =...
Separate names with a comma.