@EventHandler (priority = EventPriority.NORMAL)
	public void onInventoryClick(CraftItemEvent event){
		boolean eventDebug = false;
		
		if(eventDebug) plugin.log.info("Encountered CraftItemEvent"); 
		if(event.getView().getPlayer() instanceof Player){
			Player p = (Player) event.getView().getPlayer();
			
			if(eventDebug) plugin.log.info("Encountered CraftItemEvent as Player");
			
			Material mat = event.getInventory().getResult().getType();
			
			if(mat != null && !mat.equals(Material.AIR)){
				if(eventDebug) plugin.log.info("Material is not air.");
				if(!RPSystem.permission.has(p, plugin.config.getString("block-restriction.override-permission")) && !p.isOp()){
					if(eventDebug) plugin.log.info("Player does not have restriction override.");
					if(plugin.itemConfig.getStringList("restricted-items").contains(mat.toString())){
						if(eventDebug) plugin.log.info("Item is permission-restricted.");
						// If the item is a restricted item...
						
						if(!RPSystem.permission.has(p, plugin.itemConfig.getString(mat.toString() + ".craft-permission")) && !p.isOp()){
							if(eventDebug) plugin.log.info("Player does not have permission to craft item.");
							p.sendMessage(ChatConstants.err("Permission to craft " + mat.toString() + " denied."));
							p.sendMessage(ChatConstants.err("You do not have permission: " + ChatColor.DARK_RED + plugin.itemConfig.getString(mat + ".craft-permission") + ChatColor.RED));
							event.setCancelled(true);
						}
					}
				}
			}
		}
	}