DonorSmelt FREE Smelting Plugin!!

Status
This thread has been locked.

Obey

♣MinePots Developer♣
Banned
Feedback score
0
Posts
95
Reactions
32
Resources
0
Hello mcm I have just been coding some ideas and i have come up with a DonorSmelt Plugin so if you have the permission when you mine anything like iron_ore etc with a diamond_pickaxe it smelts it

Price:
DonorSmelt.jar
= Free
DonorSmelt source = Pm me $1

Permissions:
auto.smelt:
Allows the player to be able to mine ores while mining
If the Player doesnt have perm he wont be able to get smelted ores while mining!

Way to get plugin:
If you put in the comments you want the plugin once you have vouched i will send you the link to the download of the Plugin.

Code:
if ((hand.getType().equals(Material.IRON_PICKAXE)) || (hand.getType().equals(Material.DIAMOND_PICKAXE)))
                {
                    block.getDrops().clear();
                    block.setType(mat);
                    block.breakNaturally(new ItemStack(Material.AIR));
                    if (hand.containsEnchantment(Enchantment.LOOT_BONUS_BLOCKS))
                    {
                        Random rand = new Random();
                        dropAmount = rand.nextInt(hand.getEnchantmentLevel(Enchantment.LOOT_BONUS_BLOCKS) + 1) + 1;
                    }
                    block.getWorld().dropItemNaturally(block.getLocation(), new ItemStack(drop, dropAmount));
                }
            }

 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Obey

♣MinePots Developer♣
Banned
Feedback score
0
Posts
95
Reactions
32
Resources
0
This won't change performance, but just as a convention tip, make sure you compare enums using '==' instead of 'equals'. In most situations, 'equals' should be used when comparing an Object to another Object. Key word most. However, when it comes to enums use '=='

In case you would like to read up some more on it http://javarevisited.blogspot.com/2013/04/how-to-compare-two-enum-in-java-equals.html?m=1
Thank you and also could you test it to prove LentMinecraft its not a rat or anything
 
Banned forever. Reason: Ban Evading (Snapchat(Snapchat, https://builtbybit.com/members/snapchat.35400/))

Obey

♣MinePots Developer♣
Banned
Feedback score
0
Posts
95
Reactions
32
Resources
0
Banned forever. Reason: Ban Evading (Snapchat(Snapchat, https://builtbybit.com/members/snapchat.35400/))

user7089

I deleted discord. Clones are scams.
Premium
Feedback score
5
Posts
137
Reactions
112
Resources
0
He just forgot to remove spigot.jar export in IntelliJ, to avoid that - when you create the artifact, uncheck the export dependencies
 

Obey

♣MinePots Developer♣
Banned
Feedback score
0
Posts
95
Reactions
32
Resources
0
He just forgot to remove spigot.jar export in IntelliJ, to avoid that - when you create the artifact, uncheck the export dependencies
Yeah i forgot silly me :p
 
Banned forever. Reason: Ban Evading (Snapchat(Snapchat, https://builtbybit.com/members/snapchat.35400/))
Status
This thread has been locked.
Top