Anti-Place/Anti-craft Plugin

Status
This thread has been locked.

EasilyStrafed

Feedback score
2
Posts
16
Reactions
3
Resources
0
The plugin must have these features:
- Ability to block players from creating items such as gapples or enchantment tables
- Ability to block players from placing blocks such as enchantment tables

This will be a key plugin within my server as I do not want players to be able to craft golden apples and the only way to enchant gear will be at spawn so I do not want players to just make and place their own enchantment table. As stated in a previous thread I have no problem paying for a quality plugin, however if you come to me saying "ill make you a custom plugin but my minimum is $500" I likely wont even respond to you. Also do not ask my budget just tell me your prices. Thanks have a good day everyone!

Discord: Impose#2408
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

/usr/bin/

Linux Warrior & Software Developer
Supreme
Feedback score
14
Posts
358
Reactions
291
Resources
0
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/block/BlockPlaceEvent.html


Code:
public void onPlace(BlockPlaceEvent event) {
        if (event.getBlock().getType() == Material.ENCHANTING_TABLE){
            event.setCancelled(true);
        }
}

https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/inventory/CraftItemEvent.html
https://hub.spigotmc.org/javadocs/b...ory/InventoryClickEvent.html#getCurrentItem()

Code:
public void onCraftItem(CraftItemEvent event) {
if(event.getCurrentItem().getType() == Material.s{
event.setCancelled(true);
}
 
Status
This thread has been locked.
Top