@@ -0,0 +1,2242 @@
+package com.skcraft.plume.module;%0A%0Aimport com.google.common.collect.Lists;%0Aimport com.skcraft.plume.common.util.config.Config;%0Aimport com.skcraft.plume.common.util.config.InjectConfig;%0Aimport com.skcraft.plume.common.util.module.Module;%0Aimport com.skcraft.plume.util.Messages;%0Aimport cpw.mods.fml.common.eventhandler.SubscribeEvent;%0Aimport cpw.mods.fml.common.gameevent.TickEvent;%0Aimport cpw.mods.fml.relauncher.Side;%0Aimport net.minecraft.entity.player.EntityPlayerMP;%0Aimport net.minecraft.inventory.Slot;%0Aimport net.minecraft.item.Item;%0Aimport net.minecraft.item.ItemStack;%0Aimport net.minecraft.network.play.server.S2FPacketSetSlot;%0Aimport ninja.leaping.configurate.objectmapping.Setting;%0A%0Aimport java.util.List;%0A%0A@Module(name = %22item-bans%22)%0Apublic class ItemBans %7B%0A%0A    @InjectConfig(%22item_bans%22) private Config%3CItemBanConfig%3E config;%0A%0A    @SubscribeEvent%0A    public void onPlayerTick(TickEvent.PlayerTickEvent event) %7B%0A        if(event.phase == TickEvent.Phase.END && event.side == Side.SERVER) %7B%0A            for(int i = 0; i %3C event.player.inventory.mainInventory.length; i++) %7B%0A                ItemStack stack = event.player.inventory.mainInventory%5Bi%5D;%0A                if(stack != null) %7B%0A                    for (String bannedItem : config.get().bannedItems) %7B%0A                        if (Item.itemRegistry.getNameForObject(stack.getItem()).equals(bannedItem)) %7B%0A                            event.player.addChatMessage(Messages.error(stack.getDisplayName() + %22 is forbidden. Removing...%22));%0A                            event.player.inventory.setInventorySlotContents(i, null);%0A%0A                            Slot slot = event.player.openContainer.getSlotFromInventory(event.player.inventory, i);%0A                            ((EntityPlayerMP) event.player).playerNetServerHandler.sendPacket(new S2FPacketSetSlot(event.player.openContainer.windowId, slot.slotNumber, null));%0A                        %7D%0A                    %7D%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%0A    private static class ItemBanConfig %7B%0A        @Setting(value = %22bannedItems%22, comment = %22List of banned items/blocks that will be removed from player's inventories. Format: modId:itemName%22)%0A        private List%3CString%3E bannedItems = Lists.newArrayList(%22%22);%0A    %7D%0A%7D%0A

Add item bans module.