Does this work for you? event.setCancelled(true); event.getBlock().setType(Material.AIR); event.getPlayer().chat("/commandyouwanttouse");
I'm not sure, but maybe event.getBlock().getDrops(); is what you need.
event.getBlock(); That should work :)
Wow, I failed :D (I didn't read the whole code, I thought "world" is String :() will181 Necrodoom Sorry for confusing you :( .
"world" needs to be an world object instead of a string. (Bukkit.getWorld(String name) just returns a world with the given name.) His code: new...
Try: Location loc = new Location(Bukkit.getWorld(world), x, y, z);
I'm not sure if this is possible, but I'll try to do it! :)
Your main class: public class MyMain { private static MyMain instance; @Override public void onEnable() { instance = this; } public...
Separate names with a comma.