@Ultracrepadarian Took me a few minutes of looking at the source code, seems like the EventFactionsMembershipChange is what you want to listen for.
@dragonzuke 1) Offset the location so it spawns in the middle of the block. 2) BlockBreakEvent, check and cancel. Then set to air.
@dragonzuke Try using World#dropItemNaturally instead of adding it to the blocks drops.
@Ward1246 I'm sure it should work, as if it didn't it wouldn't be part of Bukkit. However, the only other solution I can think of it to override...
@Yarmoam You do not register your events. In your onEnable, simply add Bukkit.getPluginManager().registerEvents(this, this); //first arg is the...
@Ward1246 Just use bukkit's setTarget and set it to null.
@Doubtstand The field 'plugin' hasn't been initialized, so it and any getter methods will return null.
@Ward1246 Have you checked the argument differences between the two? A common error is the first argument, which has changed from a string to an...
@Saith1998 You're overriding the wrong method. In 1.8, entity movement is controlled by the method 'g', not 'e'. EDIT: Noticed that you're in...
@Marcohan Are you looking to replace them while the world has already been constructed or while a new world is being constructed?
@bean710 You shouldn't have the error, but the warnings *should* be normal and can be suppressed. What is the error?
@bean710 This is the most up-to-date tutorial about how to create a custom entity, and the one which I personally recommend. There is no tutorial...
@bean710 Do you need help with the custom entity itself, making it walk in a circle around its target, or both?
@Saith1998 You can't see the entity because you register your entity with an unknown Entity ID, more specifically "510000". The 'f' field in...
@lonemineah_ What @Zombie_Striker said above is the basic outline for what a HashMap is. I linked to the official Oracle tutorial on Maps in an...
@lonemineah_ As simple as if (enabled) { //Dye color green } else { //Dye color red } in your click code, with "enabled" being the value returned...
@lonemineah_ Just check for the opposite of the value you use to tell if they have it enabled, which is the reason I used a boolean for the value...
@lonemineah_ Create it in your project as you would your plugin.yml (though give it a different name of course). Then, you can use...
@meguy26 Yeah I noticed that too. Lol. @lonemineah_ Using a HashMap (UUID, Boolean) is what I would use. However, when the server is...
@lonemineah_ I'm assuming (since you don't show what each of your variables are and do not show what happens when you click it) that you do not...
Separate names with a comma.