getClickedBlock() is what you are looking for. getMaterial() returns the material of the item in hand. To convert the block to Material, of course...
@JellyRekt What @timtower is trying to say is that you somehow tried to save the World object, which of course has a lot of data in it. Instead of...
Looks like copy-pasted code. Do you know Java? Make sure you learn it before touching Bukkit.
I thought of possibly looking for your plugin with the PluginManager#getPlugin(String name) method, then calling Plugin#getConfig() ? Example:...
Listen for a FoodLevelChangeEvent. Edit: Ninja'd by @mine2012craft
@Zombie_Striker Didn't want to get shot down by mods with "Spigot isn't supported in this forum"
@PumpMelon Yea, plus, you need to use the GameProfile class to apply textures and what-not.
@Zombie_Striker That will change the player's custom name in chat, not up in their head. I think the class @PumpMelon is looking for is...
@ShewShew The best knowledge you will be able to get is from the JavaDocs. Though they are a bit deprecated, to say the least, they should still...
He's not even checking if there is a second argument. Remember, if you plan to become the main developer for a server, there are going to be...
If you want to get the last slot, you need to check for the size of the Inventory, then subtract 1 from it, as it counts from 0 to (last number -...
A second in ticks = 20 ticks, so: 1 minute = 20 * 60, an hour = 20 * 60 * 60, a day = 20 * 60 * 60 * 24 a year = 20 * 60 * 60 * 24 * 365 (or 366...
@HM04 add it as a global variable: public class YourClass { // Global Variables public void method() { // Local Variables } } and yes, it...
@GodzillaFlame42 I mean return true; , not return; my bad.
@GodzillaFlame42 add this: return; } after this: AND add this: } else if before: if(args.length == 2) {
Separate names with a comma.