Plugin category: Bukkit Minecraft version: 1.8-1.8.9 Suggested Name: AutoPickUp What I want: When you mine a block I would like it to automatically appear in your inventory, instead of it appearing on the ground. Ideas for commands: None Ideas for permissions: AutoPickUp.* (Allows the player to automatically pick it up) When I'd like it by: A week
Darn you! Haha I'm a new Bukkit developer looking for simple plugins like this. If you see any maybe tag me in a few
Here you go, I saw you've been waiting for a while I went ahead and made it. It supports 1.8-1.12.2 Here's the download and the source code: https://www.dropbox.com/s/r9arfndkmjbyu59/AutoPick.jar?dl=1 https://github.com/Paul19988/AutoPick Edit 25/04/18: https://www.dropbox.com/s/nonxcoe6wgawywb/AutoPickV0.2.jar?dl=1 Here's an updated version fixing some bugs and adding permissions
@Paul19988 There are multiple bugs with the plugin you have made. The first thing I notice, is you check if they broke with a pickaxe. I don't see why you would need that. You also don't check for the permission @LolCam12 requested. You also didn't check if his inventory was full. You can check with player.getInventory().firstEmpty(), if that returns -1, their inventory is full. Also, although I haven't checked this, I don't believe the xp will work due to you resetting their exp every time they break a block. You can fix that with p.giveExp(e.getExpToDrop()); @LolCam12 I believe I have fixed those errors: Download: https://drive.google.com/file/d/1JN_6DAI4LBCj0ESmmiLhU_oq8y8NmBwl/view?usp=sharing Source Code: https://github.com/PlasmaFighter/Auto-Pick-Up/blob/master/Main.java
@PlasmaFighter_ Thank you for the notification. I've been busy lately so I didn't get to check. Thank you for checking!